Skip to content

Commit 9da011d

Browse files
committed
chore: 移除无用配置
1 parent 5ada86d commit 9da011d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

vite.config.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,10 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
8686
? undefined
8787
: {
8888
/** 打包时移除 console.log */
89-
pure: ['console.log'],
90-
/** 打包时移除 debugger */
91-
drop: ['debugger'],
92-
/** 打包时移除所有注释 */
93-
legalComments: 'none',
94-
},
89+
pure: ['console.log'],
90+
/** 打包时移除 debugger */
91+
drop: ['debugger'],
92+
},
9593
build: {
9694
target: 'es2015',
9795
outDir: env.VITE_OUT_DIR || 'dist',

0 commit comments

Comments
 (0)