gerson
2025-01-19 685d9561794856acec1b08c280900e85498492fb
vite.config.ts
@@ -22,10 +22,7 @@
   const env = loadEnv(mode.mode, process.cwd());
   return {
      plugins: [
         CodeInspectorPlugin({
            bundler: 'vite',
            hotKeys: ['shiftKey'],
         }),
         vue(),
         vueSetupExtend(),
         viteCommonjs(),
@@ -33,6 +30,10 @@
         viteCompression({
            threshold: 1024000,
         }),
         // CodeInspectorPlugin({
         //    bundler: 'vite',
         //    hotKeys: ['shiftKey'],
         // }),
      ],
      root: process.cwd(),
      resolve: { alias },
@@ -44,7 +45,7 @@
         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',