Expand description
Port of src/ast/features/index.ts and of the MinifyFeature interface.
A feature is registered (static register(options)) into the feature list of a minification when its option is
set: the list holds shared instances (Rc<RefCell<..>>), a feature keeps its state between the nodes.
Modules§
- calc
- Port of
src/ast/features/calc.ts. - if
- Port of
src/ast/features/if.ts:if()conditions expanded into declarations and at-rules. - inlinecssvariables
- Port of
src/ast/features/inlinecssvariables.ts. - mixin
- Port of
src/ast/features/mixin.ts: the@applyrules are replaced by the body of the mixin they reference, the custom function calls by the result of the function (https://drafts.csswg.org/css-mixins-1/#mixin-rule). - prefix
- Port of
src/ast/features/prefix.ts: vendor prefixes removal. - shorthand
- Port of
src/ast/features/shorthand.ts. - transform
- Port of
src/ast/features/transform.ts. - type
- Port of
src/ast/features/type.ts.
Enums§
- Feature
Result - result of
MinifyFeature::run: the replacement of the node
Traits§
- Minify
Feature - minification feature (
MinifyFeature)
Functions§
- register_
features - register the features enabled by the options, in the order of the exports of
features/index.ts(the classes have no static ordering: the typescript sort keeps that order).
Type Aliases§
- Shared
Feature - a registered feature