antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite
MIT License
1.27k stars 129 forks source link

feat: replace html-minifier with html-minifier-terser #409

Closed JustRed23 closed 1 day ago

JustRed23 commented 3 days ago

Description

This PR replaces the vulnerable html-minifier package, which contained a CVE, with an updated html-minifier-terser package. I find this a good replacement since the html-minifier has not received any updates in 5 years.

Linked Issues

397

Additional context

Please do test the minifier, as I have no clue how to test that, I just replaced the deps and added an await