Skip to main content

merge_rules

Function merge_rules 

Source
pub fn merge_rules(arena: &AstArena, ast: u32, options: &ParserOptions) -> u32
Expand description

apply the minification rules to the ast tree merge the adjacent rules without minifying the ast: minify: false with mergeRules (see ParserOptions.merge_rules). the style rules that have the same selector, the keyframes rules that have the same selector, the at-rules that have the same name and prelude (not @font-face) and, depending on mergeRules, the rules that share declarations are merged. of the @keyframes that have the same name, the last one is kept. the other minifications are not applied