Skip to content

v2.1.0

Compare
Choose a tag to compare
@giuseppeg giuseppeg released this 15 Oct 16:17
· 184 commits to main since this release

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 for optimizeForSpeed #313. This also fixes #305 - huge thank you to @thysultan for his help!