You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// 不能用localhost, https://forum.dfinity.org/t/development-workflow-quickly-test-code-modifications/1793/21
const API _BASE _URL = 'http://127.0.0.1:12450'
module . exports = {
devServer : {
proxy : {
'/api' : {
target : API _BASE _URL ,
ws : true
} ,
'/emoticons' : {
target : API _BASE _URL
} ,
'/custom_public' : {
target : API _BASE _URL
} ,
}
} ,
chainWebpack : config => {
const APP _VERSION = ` v ${ process . env . npm _package _version } `
config . plugin ( 'define' )
. tap ( args => {
let defineMap = args [ 0 ]
let env = defineMap [ 'process.env' ]
env [ 'APP_VERSION' ] = JSON . stringify ( APP _VERSION )
return args
} )
// config.externals({
// 'element-ui': 'ELEMENT',
// lodash: '_',
// pako: 'pako',
// vue: 'Vue',
// 'vue-router': 'VueRouter',
// 'vue-i18n': 'VueI18n',
// })
}
}