| | |
| | | const env = loadEnv(mode.mode, process.cwd()); |
| | | return { |
| | | plugins: [ |
| | | CodeInspectorPlugin({ |
| | | bundler: 'vite', |
| | | hotKeys: ['shiftKey'], |
| | | }), |
| | | |
| | | vue(), |
| | | vueSetupExtend(), |
| | | viteCommonjs(), |
| | |
| | | viteCompression({ |
| | | threshold: 1024000, |
| | | }), |
| | | // CodeInspectorPlugin({ |
| | | // bundler: 'vite', |
| | | // hotKeys: ['shiftKey'], |
| | | // }), |
| | | ], |
| | | root: process.cwd(), |
| | | resolve: { alias }, |
| | |
| | | host: '0.0.0.0', |
| | | port: env.VITE_PORT as unknown as number, |
| | | open: JSON.parse(env.VITE_OPEN), |
| | | hmr: false, |
| | | hmr: true, |
| | | proxy: { |
| | | '/gitee': { |
| | | target: 'https://gitee.com', |