初始提交
This commit is contained in:
32
vue.config.js
Normal file
32
vue.config.js
Normal file
@ -0,0 +1,32 @@
|
||||
// const serverHost = "http://20.75.14.110:38890";
|
||||
// const serverHost = "http://172.20.19.72:8006";
|
||||
|
||||
module.exports = {
|
||||
productionSourceMap: false,
|
||||
publicPath: './',
|
||||
chainWebpack: config => {
|
||||
config.plugin("webpack-bundle-analyzer").use(require("webpack-bundle-analyzer").BundleAnalyzerPlugin)
|
||||
},
|
||||
|
||||
devServer: {
|
||||
port: 9528,
|
||||
proxy: {
|
||||
'/mosty-api': {
|
||||
target: "http://118.122.165.45:35623",
|
||||
// target: "http://172.20.19.54:8006",
|
||||
changeOrigin: true,
|
||||
},
|
||||
}
|
||||
},
|
||||
configureWebpack: {
|
||||
performance: {
|
||||
hints: false,
|
||||
},
|
||||
optimization: {
|
||||
minimize: true,
|
||||
splitChunks: {
|
||||
chunks: "all"
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user