wujingjing
2024-09-05 e3674ccc57f6d4afe8dbd77b2d96d81777e2422f
vite.config.ts
@@ -1,3 +1,4 @@
import { viteCommonjs } from '@originjs/vite-plugin-commonjs';
import vue from '@vitejs/plugin-vue';
import autoprefixer from 'autoprefixer';
import { resolve } from 'path';
@@ -6,6 +7,7 @@
import { defineConfig, loadEnv } from 'vite';
import viteCompression from 'vite-plugin-compression';
import vueSetupExtend from 'vite-plugin-vue-setup-extend-plus';
const pathResolve = (dir: string) => {
   return resolve(__dirname, '.', dir);
};
@@ -21,6 +23,8 @@
      plugins: [
         vue(),
         vueSetupExtend(),
         viteCommonjs(),
         viteCompression({
            threshold: 1024000,
         }),
@@ -35,7 +39,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',