chialab / rna

🚀 Build tools for modern web modules and applications.
https://chialab.github.io/rna/
MIT License
172 stars 21 forks source link

Support HTML minification with `htmlnano` #168

Closed edoardocavazza closed 8 months ago

edoardocavazza commented 8 months ago

This PR adds support for HTML minification through the htmlnano module. Please note that htmlnano is not bundled with the plugin, users will need to install the dependency themselves in order to enable HTML minification.

It should fix #158.

changeset-bot[bot] commented 8 months ago

🦋 Changeset detected

Latest commit: 550fdcbf8786e24ce75733493ab25575ff675662

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------------- | ----- | | @chialab/esbuild-plugin-html | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov[bot] commented 8 months ago

Codecov Report

Attention: Patch coverage is 73.33333% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 91.54%. Comparing base (d745e14) to head (550fdcb).

Files Patch % Lines
packages/esbuild-plugin-html/lib/index.js 73.33% 8 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #168 +/- ## ========================================== - Coverage 91.64% 91.54% -0.10% ========================================== Files 36 36 Lines 5865 5892 +27 ========================================== + Hits 5375 5394 +19 - Misses 490 498 +8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.