-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(html/minifier): Support using custom css minifier (#9425)
**Description:** Support use a custom css minifier when minimizing html, add `feature = "custom-css-minifier"` to enable this and remove the dependencies of `swc_css_*`. And `feature = "default-css-minifier"` keep the original behavior, using `swc_css` when minimizing html, and this is the default feature. (Rspack is now using LightningCSS to minimize CSS files, but the CSS insides html is still using `swc_css` (which called by `swc_html_minifier`) to do the minify, so we want to also use LightningCSS to minify the CSS insides html to keep the consistent with CSS files)
- Loading branch information
Showing
5 changed files
with
279 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
swc_core: patch | ||
swc_html: patch | ||
swc_html_minifier: patch | ||
--- | ||
|
||
feat(html/minifier): Support using custom css minifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.