2.0.0
PostCSS v3.0.0
- The fastest CSS parser
- Changes with version 2
Pixrem v1.0.0
Add some great improvements:
- Don't generate fallbacks anymore when browsers without
rem
support don't understand the property/value (eg in media-queries (all at-rules actually), in properties liketransform
,border-radius
, etc. and in values likecalc()
orlinear-gradient()
). A new option (atrules
) allows to keep fallbacks in atrules if you really want it. - Get root font-size value if defined in CSS
html { font-size: 20px; }
.a { font-size: 2rem; }
gives
html { font-size: 20px; }
.a { font-size: 40px; font-size: 2rem; }
Note: I'm now an official maintainer of this module. Fell free to ask me if you need updates. \o/
New browsers
option
Allows you to override many options in one go. Accept same value as Autoprefixer and override it, based on CanIUse database (exactly as Autoprefixer)
For example, if you set:
{
"browsers": ["ie 9"]
}
You will automatically have:
{
"autoprefixer": { "browsers": ["ie 9"] },
"rem": false,
"opacity": false,
"pseudoElements": false
}
mqpacker option set to false
Grouping media-queries may produce unwanted results, so mqpacker
option is now disabled by default.