How to remove console.log ,when vite build use esbuild? #7920
Answered
by
tatsunix
tomatobybike
asked this question in
Q&A
Replies: 5 comments 24 replies
|
Have the same confusion, can anyone provide a solution? |
0 replies
|
use minify: 'terser' to build is slower then minify: 'esbuild' 44 seconds terser build cost 78.73s ========== |
0 replies
export default defineConfig({
esbuild: {
drop: ['console', 'debugger'],
},
}); |
16 replies
Answer selected by
tomatobybike
|
@blinpete if I want to remove |
7 replies
|
you can try this plugin vite-plugin-remove-console |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vite.config.js
===============================
I want to use esbuild to build,because because esbuild so faster then terser,but how can i remove console.log ,use esbuild
All reactions