v2.1.0
Features
- Introduce a plugin system to preprocess styles π #291
Plugins are regular JavaScript modules that export a simple function with the following signature:
(css: string, options: Object) => string
They accept a CSS string in input, optionally modify it and finally return it.
Plugins make it possible to use popular preprocessors like SASS, Less, Stylus, PostCSS or apply custom transformations to the styles at compile time.
Details and usage can be found in the CSS Preprocessing via Plugins section of README.md
Patches
- Switch to
stylis-rule-sheet
to split CSS rules into array of rules foroptimizeForSpeed
#313. This also fixes #305 - huge thank you to @thysultan for his help!