Skip to content

Commit

Permalink
fix: build drop console
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Jun 30, 2024
1 parent aa160da commit 05df1eb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 05df1eb

Please sign in to comment.