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 support for script type module #29

Closed rarous closed 4 years ago

rarous commented 4 years ago

This allows to minify the inline <script type=module> code. Without this they are ignored and not minified. Type module is a way how to use modern ES in browsers without transpilation.

DanielRuf commented 4 years ago

Hi @rarous,

thanks for your PR.

Please describe your motivation for this proposed change. Does this fix something and how could we reproduce it then?

rarous commented 4 years ago

@DanielRuf Hi Daniel. This allows to minify the inline <script type=module> code. Without this they are ignored and not minified. Type module is a way how to use modern ES in browsers without transpilation.

DanielRuf commented 4 years ago

Ok, would be great if you can describe this when you do a PR. I will add the description to it now.

DanielRuf commented 4 years ago

Your PR is merged now :tada: Thank you very much for your PR @rarous :bowing_man:

I will plan a new release in the coming days.

rarous commented 4 years ago

Thank you very much.

DanielRuf commented 4 years ago

This change landed in html-minifier-terser 5.0.3. Many thanks for your contribution to html-minifier-terser.