Expand description
Port of src/ast/mixins/utils.ts: helpers shared by the minification features.
Functionsยง
- is_
in_ template - true if the node is a
@mixinor a@functionrule, or is located inside one of them. the body of a mixin or a custom function is a template: it is evaluated when the mixin is applied or the function is called - move_
result - move the last
resultdescriptor of a custom function after its conditional rules: there is no early return.result: 16px; @media (...) { result: 20px }->@media (...) { result: 20px } result: 16px