#How to automatically delete commented code during production
1 messages · Page 1 of 1 (latest)
Sorry I'm on my phone but you should be able to use a roll-up plugin to strip comments. If you look at the documentation surrounding how to access the esbuild process from the astro config it should be pretty straightforward
i did it
createHtmlPlugin({
minify: true,
}),
how i can save JS file minify and unminify for my build ?
Hey - did you get it all working? Comments removing ?
Aha - I have a solution.