|
|
|
@ -16,14 +16,15 @@ export default ({ mode, command }) => {
|
|
|
|
|
// hy
|
|
|
|
|
// target: 'http://192.168.10.48:8888',
|
|
|
|
|
// lmy
|
|
|
|
|
// target: 'http://192.168.10.123:8889',
|
|
|
|
|
// target: 'http://192.168.10.123:8889',
|
|
|
|
|
// caoge
|
|
|
|
|
// target: 'http://192.168.10.101:8888',
|
|
|
|
|
// cyz
|
|
|
|
|
// target: 'http://192.168.10.75:8777',
|
|
|
|
|
// tjj
|
|
|
|
|
target: 'http://192.168.10.29:13000',
|
|
|
|
|
// target: 'http://test.api.huitongys.com',
|
|
|
|
|
// target: 'http://192.168.10.29:13000',
|
|
|
|
|
target: 'http://test.api.huitongys.com', |
|
|
|
|
// target: 'http://h5uapi.huitongys.com',
|
|
|
|
|
changeOrigin: true, |
|
|
|
|
rewrite: path => path.replace(/^\/api/, ''), |
|
|
|
|
}, |
|
|
|
@ -45,16 +46,12 @@ export default ({ mode, command }) => {
|
|
|
|
|
output: { |
|
|
|
|
// 分包
|
|
|
|
|
manualChunks(id) { |
|
|
|
|
if (id.includes("node_modules")) { |
|
|
|
|
return id |
|
|
|
|
.toString() |
|
|
|
|
.split("node_modules/")[1] |
|
|
|
|
.split("/")[0] |
|
|
|
|
.toString(); |
|
|
|
|
if (id.includes('node_modules')) { |
|
|
|
|
return id.toString().split('node_modules/')[1].split('/')[0].toString(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|