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

New release has a weird bug! #77

Closed amerllica closed 3 years ago

amerllica commented 3 years ago

Hello again, Based on this issue I send this PR for updating Clean-CSS, and when this package was released on version 6+, I updated this package on my project, but after bundle I just see {} for rendered HTML on browser.

We downgrade to 5.1.1 and everything is ok now.

I considered it my duty to report it. if need any more data please tell me. I will share to prevent this weird bug.

DanielRuf commented 3 years ago

Please provide the details about the exact version that you use and how you use html-minifier-terser so this can be reproduced.

DanielRuf commented 3 years ago

Please also see the readme / docs regarding the new API based on async/await.

sibiraj-s commented 3 years ago

@amerllica. As @DanielRuf mentioned the minify api is now async. Closing this issue for now. Reopen with more information if the issue still persists.