Cargo Features
[dependencies]
swc_html_minifier = { version = "6.0.0", default-features = false, features = ["default-css-minifier", "custom-css-minifier"] }
- default = default-css-minifier
-
The
default-css-minifier
feature is set by default wheneverswc_html_minifier
is added without
somewhere in the dependency tree.default-features = false - default-css-minifier default = swc_css_ast, swc_css_codegen, swc_css_minifier, swc_css_parser
-
Affects
swc_html_minifier::minify_document
,swc_html_minifier::minify_document_fragment
,option::CssOptions
… - custom-css-minifier
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.