wujingjing
2024-12-13 3cedfede6934fcdabe7394d8a88d1826e72e78e2
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 },