Commit 89b2d75c authored by huanglu's avatar huanglu

feat: config

parent e73b92ed
......@@ -41,7 +41,8 @@ module.exports = {
changeOrigin: true
}
},
publicPath: '/jst',
publicPath: '/jst-upgrade',
outputDir: 'jst-upgrade',
alias: { // 配置这个,注意配置 jsconfig.json 文件,方便 vscode 能够跳进
"@": resolve('src')
}
......
......@@ -16,6 +16,7 @@ module.exports = {
},
publicPath: config.publicPath || '/',
lintOnSave: true,
outputDir: config.outputDir || 'dist',
pages: config.pages,
devServer: {
proxy: config.proxy || {},
......@@ -27,7 +28,7 @@ module.exports = {
errors: true
},
headers: {
'x-source': '192.168.32.37:3000'
'x-source': '192.168.32.58:3000'
},
before(app) {
Object.keys(mock).forEach((key) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment