From 59951a7031d50c8528764c624628886c31a6ea2c Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期五, 13 十二月 2024 16:35:51 +0800 Subject: [PATCH] 完全对接JSON,添加描述 --- vite.config.ts | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 91ced05..a568226 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,6 +7,7 @@ import { defineConfig, loadEnv } from 'vite'; import viteCompression from 'vite-plugin-compression'; import vueSetupExtend from 'vite-plugin-vue-setup-extend-plus'; +import { CodeInspectorPlugin } from 'code-inspector-plugin'; const pathResolve = (dir: string) => { return resolve(__dirname, '.', dir); @@ -21,6 +22,7 @@ const env = loadEnv(mode.mode, process.cwd()); return { plugins: [ + vue(), vueSetupExtend(), viteCommonjs(), @@ -28,6 +30,10 @@ viteCompression({ threshold: 1024000, }), + // CodeInspectorPlugin({ + // bundler: 'vite', + // hotKeys: ['shiftKey'], + // }), ], root: process.cwd(), resolve: { alias }, -- Gitblit v1.9.3