MeterSphere/frontend/vue.config.js

42 lines
754 B
JavaScript
Raw Normal View History

2020-09-27 12:46:32 +08:00
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
2020-02-03 14:01:28 +08:00
module.exports = {
2020-07-09 17:04:34 +08:00
productionSourceMap: true,
devServer: {
port: 8080,
proxy: {
['^(?!/login)']: {
target: 'http://localhost:8081',
ws: true,
}
}
},
pages: {
business: {
entry: "src/business/main.js",
template: "src/business/index.html",
filename: "index.html"
2020-02-03 14:01:28 +08:00
},
2020-07-09 17:04:34 +08:00
login: {
entry: "src/login/login.js",
template: "src/login/login.html",
filename: "login.html"
2020-02-03 14:01:28 +08:00
}
2020-09-27 12:46:32 +08:00
},
configureWebpack: {
devtool: 'source-map',
resolve: {
alias: {
'@': resolve('src')
}
}
},
chainWebpack(config) {
config.plugins.delete('prefetch')
2020-07-09 17:04:34 +08:00
}
2020-02-03 15:16:37 +08:00
};