|
@@ -3,6 +3,7 @@ const webpack = require("webpack");
|
|
const BundleAnalyzerPlugin =
|
|
const BundleAnalyzerPlugin =
|
|
require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
|
|
require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
|
|
module.exports = {
|
|
module.exports = {
|
|
|
|
+ outputDir: process.env.outputDir,
|
|
publicPath: process.env.NODE_ENV === "production" ? "" : "/",
|
|
publicPath: process.env.NODE_ENV === "production" ? "" : "/",
|
|
productionSourceMap: false,
|
|
productionSourceMap: false,
|
|
lintOnSave: false,
|
|
lintOnSave: false,
|
|
@@ -85,6 +86,7 @@ module.exports = {
|
|
// new WebpackLifeCyclePlugin(),
|
|
// new WebpackLifeCyclePlugin(),
|
|
// // new BundleAnalyzerPlugin()
|
|
// // new BundleAnalyzerPlugin()
|
|
// ]
|
|
// ]
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
parallel: true,
|
|
parallel: true,
|
|
@@ -124,6 +126,14 @@ module.exports = {
|
|
"^/market": "",
|
|
"^/market": "",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ "/api": {
|
|
|
|
+ target: "http://43.138.50.94:7777",
|
|
|
|
+ ws: false,
|
|
|
|
+ changeOrigin: true,
|
|
|
|
+ pathRewrite: {
|
|
|
|
+ "^/api": "",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
// 开发环境变化可注释 ⬆️⬆️
|
|
// 开发环境变化可注释 ⬆️⬆️
|
|
"/": {
|
|
"/": {
|
|
// target: 'http://192.168.2.145:9600/spfm',
|
|
// target: 'http://192.168.2.145:9600/spfm',
|
|
@@ -133,8 +143,12 @@ module.exports = {
|
|
// target: 'http://192.168.1.9:9600/spfm',
|
|
// target: 'http://192.168.1.9:9600/spfm',
|
|
// target: 'http://127.0.0.1:9600/',
|
|
// target: 'http://127.0.0.1:9600/',
|
|
// target: 'http://192.168.0.156:9600/',
|
|
// target: 'http://192.168.0.156:9600/',
|
|
|
|
+ // target: 'http://192.168.2.92:9600/',
|
|
|
|
+ // target: 'http://192.168.2.124:9600/',
|
|
|
|
+ // target: "http://124.223.66.248:9600",
|
|
|
|
+ target: "http://43.138.50.94:9600",
|
|
// target: 'http://192.168.2.44:9600/',
|
|
// target: 'http://192.168.2.44:9600/',
|
|
- target: 'http://192.168.2.92:9600',
|
|
|
|
|
|
+ // target: 'http://192.168.2.92:9600',
|
|
// target: "http://124.223.66.248:9600",
|
|
// target: "http://124.223.66.248:9600",
|
|
// target: "http://43.138.50.94:9600",
|
|
// target: "http://43.138.50.94:9600",
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|