2026-04-10 17:10:36 +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: {
|
2026-04-16 14:21:25 +08:00
|
|
|
'/api': {
|
|
|
|
|
target: "http://220.166.58.28:172",
|
2026-04-10 17:10:36 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
configureWebpack: {
|
|
|
|
|
performance: {
|
|
|
|
|
hints: false,
|
|
|
|
|
},
|
|
|
|
|
optimization: {
|
|
|
|
|
minimize: true,
|
|
|
|
|
splitChunks: {
|
|
|
|
|
chunks: "all"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|