fix: build drop console

This commit is contained in:
jialin
2024-06-30 14:07:14 +08:00
parent aa160da9f9
commit 05df1ebfdb
+4 -5
View File
@@ -45,15 +45,14 @@ export default defineConfig({
}
]);
},
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true
}
jsMinifierOptions: {
drop_console: true,
drop_debugger: true
}
}
: {}),
// esbuildMinifyIIFE: true,
favicons: ['/static/favicon.ico'],
jsMinifier: 'terser',
cssMinifier: 'cssnano',