Răsfoiți Sursa

fix: 修复 vite 配置打包报错

yanglzh 1 an în urmă
părinte
comite
5a7b23cb0c
1 a modificat fișierele cu 11 adăugiri și 11 ștergeri
  1. 11 11
      vite.config.ts

+ 11 - 11
vite.config.ts

@@ -61,17 +61,17 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
 					},
 				},
 			},
-			minify: 'terser', // 使用terser进行压缩
-			terserOptions: {
-				compress: {
-					drop_console: true,
-					drop_debugger: true,
-				},
-				ie8: true,
-				output: {
-					comments: true,
-				},
-			},
+			// minify: 'terser', // 使用terser进行压缩
+			// terserOptions: {
+			// 	compress: {
+			// 		drop_console: true,
+			// 		drop_debugger: true,
+			// 	},
+			// 	ie8: true,
+			// 	output: {
+			// 		comments: true,
+			// 	},
+			// },
 		},
 		css: {
 			postcss: {