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 whenever swc_html_minifier is added without default-features = false somewhere in the dependency tree.

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.

swc_css_ast default-css-minifier
swc_css_codegen default-css-minifier
swc_css_minifier default-css-minifier
swc_css_parser default-css-minifier