From d3efce76cd9698b364e1db3e17aec2f7ee36d0d9 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期一, 24 二月 2025 10:23:40 +0800
Subject: [PATCH] 1000 修改刷新页面宽度

---
 vite.config.ts |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index 91ced05..fa15255 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 },
@@ -39,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',

--
Gitblit v1.9.3