Closed ffxsam closed 1 year ago
I suppose this is by design. I'm having a heck of a time finding an HTML minifier that works in a browser environment, for some reason.
hi @ffxsam You can make this work on browser. See https://github.com/terser/html-minifier-terser/blob/master/vite.config.js
And, You can see the working example here https://terser.org/html-minifier-terser/
What happened?
I'm trying to use this in a Vite app, but this package seems to depend on
clean-css
which is a Node.js package (as it refers toprocess
).Version
v7.2.0
What browsers are you seeing the problem on?
Chrome
Link to reproduce
No response
Relevant log output
Willing to submit a PR?
None