New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(html/minifier): improve the remove_redundant_attributes
option
#6197
feat(html/minifier): improve the remove_redundant_attributes
option
#6197
Conversation
remove_redundant_attributes
option
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] | ||
#[serde(deny_unknown_fields)] | ||
#[serde(rename_all = "kebab-case")] | ||
pub enum RemoveRedundantAttributes { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's implement Default
for this type instead of using #[serde(default = "")]
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can then change #[serde(default = "...")]
to #[serde(default)]
@kdy1 Done, for another enum too 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI faileda
9f7f76e
to
c176d5b
Compare
@kdy1 Fixed again 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swc-bump:
- swc_html_minifier --breaking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated review comment generated by auto-rebase script
Description:
Due kangax/html-minifier#1075
A lot of CSS frameworks use (and not only):
So it is not safe to remove them by default, anyway I implemented the
safe
mode - it will remove:BREAKING CHANGE:
Yes
Related issue (if exists):
No