#How to automatically delete commented code during production

1 messages · Page 1 of 1 (latest)

proper quartz
#

There remains a lot of commented out code that gets into production

hidden parcel
#

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

proper quartz
#

i did it

#

createHtmlPlugin({
minify: true,
}),

#

how i can save JS file minify and unminify for my build ?

copper yarrow
#

Hey - did you get it all working? Comments removing ?

copper yarrow
#

Aha - I have a solution.

proper quartz
#

Hey, yes i did it

#

I just to included module vite-plugin-html

#

still..