Last updated
Was this helpful?
Last updated
Was this helpful?
lets you use Custom Selectors in CSS, following the specification.
Add to your project:
Use to process your CSS:
The preserve
option determines whether custom selectors and rules using custom selectors should be preserved in their original form.
The importFrom
option specifies sources where custom selectors can be imported from, which might be CSS, JS, and JSON files, functions, and directly passed objects.
Multiple sources can be passed into this option, and they will be parsed in the order they are received. JavaScript files, JSON files, functions, and objects will need to namespace custom selectors using the customProperties
or custom-properties
key.
The exportTo
option specifies destinations where custom selectors can be exported to, which might be CSS, JS, and JSON files, functions, and directly passed objects.
Multiple destinations can be passed into this option, and they will be parsed in the order they are received. JavaScript files, JSON files, and objects will need to namespace custom selectors using the customProperties
or custom-properties
key.
Or use it as a plugin:
runs in all Node environments, with special instructions for: