马远东 4 months ago
parent
commit
5b59e6adfd
  1. 9
      vite.config.js

9
vite.config.js

@ -15,12 +15,14 @@ export default ({ mode, command }) => {
// target: 'http://192.168.10.126:8889', // target: 'http://192.168.10.126:8889',
// hy // hy
// target: 'http://192.168.3.12:13000', // target: 'http://192.168.3.12:13000',
// longge
// target: 'http://192.168.3.16:13000',
// xiaohei // xiaohei
// target:'http://192.168.3.65:13000', // target:'http://192.168.3.65:13000',
// lmy // lmy
// target: 'http://192.168.10.123:8889', // target: 'http://192.168.10.123:8889',
// cg // cg
// target: 'http://192.168.3.2:13000', // target: 'http://192.168.3.73:13000',
// target: 'http://192.168.10.101:8888', // target: 'http://192.168.10.101:8888',
// 老zyc // 老zyc
// target: 'http://192.168.10.75:8777', // target: 'http://192.168.10.75:8777',
@ -35,7 +37,7 @@ export default ({ mode, command }) => {
// target: 'http://192.168.10.29:13000', // target: 'http://192.168.10.29:13000',
// target: 'http://192.168.3.5:13000',//? // target: 'http://192.168.3.5:13000',//?
// target: 'http://h5uapi.huitongys.com', // target: 'http://h5uapi.huitongys.com',
target: 'http://test.api.huo5you.com', target: 'http://test.api.huo5u.com',
changeOrigin: true, changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''), rewrite: path => path.replace(/^\/api/, ''),
}, },
@ -46,6 +48,9 @@ export default ({ mode, command }) => {
}, },
}, },
}, },
esbuild:{
drop: ['console','debugger']
},
resolve: { resolve: {
alias: { alias: {
'~': resolve(__dirname, './'), '~': resolve(__dirname, './'),

Loading…
Cancel
Save