mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 21:49:23 +08:00
42 lines
754 B
JavaScript
42 lines
754 B
JavaScript
const path = require('path')
|
|
|
|
function resolve(dir) {
|
|
return path.join(__dirname, dir)
|
|
}
|
|
|
|
module.exports = {
|
|
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"
|
|
},
|
|
login: {
|
|
entry: "src/login/login.js",
|
|
template: "src/login/login.html",
|
|
filename: "login.html"
|
|
}
|
|
},
|
|
configureWebpack: {
|
|
devtool: 'source-map',
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve('src')
|
|
}
|
|
}
|
|
},
|
|
chainWebpack(config) {
|
|
config.plugins.delete('prefetch')
|
|
}
|
|
};
|