2025-09-04 16:35:14 +08:00
|
|
|
// 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': {
|
2025-09-07 21:33:05 +08:00
|
|
|
// target: "http://118.122.165.45:35623",
|
|
|
|
target: "http://192.168.1.8:8006",
|
2025-09-04 16:35:14 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
configureWebpack: {
|
|
|
|
performance: {
|
|
|
|
hints: false,
|
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
minimize: true,
|
|
|
|
splitChunks: {
|
|
|
|
chunks: "all"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2025-09-07 21:33:05 +08:00
|
|
|
};
|