Skip to content

[2.1.0] - 2018-03-19

Latest
Compare
Choose a tag to compare
@sergei-zelinsky sergei-zelinsky released this 20 Mar 22:34
· 1 commit to master since this release
a644f78

Added

StyleRegistry now optionally accepts transformFn

Example:

const styleRegistry = new StyleRegistry(style => style.replace(/\s/g, ''));
   
styleRegistry.registerStyles('body { color: red; }')

console.log(styleRegistry.getCriticalCSS())  //-> body{color: red;}
// ...

Changed

Components don't throw any errors now.