terser / html-minifier-terser

actively maintained fork of html-minifier - minify HTML, CSS and JS code using terser - supports ES6 code
https://terser.org/html-minifier-terser
MIT License
376 stars 30 forks source link

Add importmap minification #172

Closed sdavids closed 11 months ago

sdavids commented 11 months ago

fixes #169

DanielRuf commented 11 months ago

I very much appreciate your effort and the amount of work that you have invested. Thank you very much.

Still, I think this is not going into the right direction and leads to more edge cases and all this just to get rid of extra spaces.

We just need an option to clear these extra spaces (in general), for all inputs (nut just JSON or importmap). The JSON.parse/stringify workaround is not an ideal solution.

Regarding tests, I think real examples make more sense.