|
@@ -35,8 +35,8 @@ module.exports = {
|
|
|
proxy: {
|
|
proxy: {
|
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- // http://36.133.174.236:9090 http://192.168.1.127:9090 http://192.168.31.110:9090(动感光波)
|
|
|
|
|
- target: `http://192.168.58.11:9090`,
|
|
|
|
|
|
|
+ // http://36.133.174.236:9090 http://192.168.1.127:9090 http://192.168.31.110:9090(动感光波) 192.168.58.11:9090(五楼车总)
|
|
|
|
|
+ target: `http://36.133.174.236:9090`,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
@@ -80,7 +80,11 @@ module.exports = {
|
|
|
chainWebpack(config) {
|
|
chainWebpack(config) {
|
|
|
config.plugins.delete('preload') // TODO: need test
|
|
config.plugins.delete('preload') // TODO: need test
|
|
|
config.plugins.delete('prefetch') // TODO: need test
|
|
config.plugins.delete('prefetch') // TODO: need test
|
|
|
-
|
|
|
|
|
|
|
+ // 去除全局console
|
|
|
|
|
+ config.optimization.minimizer('terser').tap((args) => {
|
|
|
|
|
+ args[0].terserOptions.compress.drop_console = true
|
|
|
|
|
+ return args
|
|
|
|
|
+ })
|
|
|
// set svg-sprite-loader
|
|
// set svg-sprite-loader
|
|
|
config.module
|
|
config.module
|
|
|
.rule('svg')
|
|
.rule('svg')
|