Commit 89b2d75c authored by huanglu's avatar huanglu

feat: config

parent e73b92ed
...@@ -41,7 +41,8 @@ module.exports = { ...@@ -41,7 +41,8 @@ module.exports = {
changeOrigin: true changeOrigin: true
} }
}, },
publicPath: '/jst', publicPath: '/jst-upgrade',
outputDir: 'jst-upgrade',
alias: { // 配置这个,注意配置 jsconfig.json 文件,方便 vscode 能够跳进 alias: { // 配置这个,注意配置 jsconfig.json 文件,方便 vscode 能够跳进
"@": resolve('src') "@": resolve('src')
} }
......
...@@ -16,6 +16,7 @@ module.exports = { ...@@ -16,6 +16,7 @@ module.exports = {
}, },
publicPath: config.publicPath || '/', publicPath: config.publicPath || '/',
lintOnSave: true, lintOnSave: true,
outputDir: config.outputDir || 'dist',
pages: config.pages, pages: config.pages,
devServer: { devServer: {
proxy: config.proxy || {}, proxy: config.proxy || {},
...@@ -27,7 +28,7 @@ module.exports = { ...@@ -27,7 +28,7 @@ module.exports = {
errors: true errors: true
}, },
headers: { headers: {
'x-source': '192.168.32.37:3000' 'x-source': '192.168.32.58:3000'
}, },
before(app) { before(app) {
Object.keys(mock).forEach((key) => { 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