dataease-dm/frontend/vue.config.js

43 lines
789 B
JavaScript
Raw Normal View History

2021-02-18 18:14:45 +08:00
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
productionSourceMap: true,
devServer: {
port: 8080,
2021-02-20 10:07:25 +08:00
proxy: {
['^(?!/login)']: {
target: 'http://localhost:8081',
ws: true,
}
}
},
pages: {
business: {
entry: "src/business/main.js",
template: "src/business/index.html",
filename: "index.html"
2021-02-18 18:14:45 +08:00
},
2021-02-20 10:07:25 +08:00
login: {
entry: "src/login/login.js",
template: "src/login/login.html",
filename: "login.html"
}
2021-02-18 18:14:45 +08:00
},
configureWebpack: {
2021-02-20 18:40:43 +08:00
// devtool: 'source-map',
devtool: 'eval-source-map',
2021-02-18 18:14:45 +08:00
resolve: {
alias: {
'@': resolve('src')
}
}
2021-02-20 10:07:25 +08:00
},
chainWebpack(config) {
config.plugins.delete('prefetch')
2021-02-18 18:14:45 +08:00
}
};