Auto create css files with rem replacements for old ie versions with media-queries
For media queries on old IE version, see https://github.com/scottjehl/Respond
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-oldie-rem --save-dev
In your project's Gruntfile, add a section named
oldie_rem to the data object passed into
There is no option for now.
Assuming you have two CSS file with lots of rem properties (modern_css.css and modern_app.css), and you want to create a CSS file with fallbacks px properties, use this example :
You have an idea to improve this script ? Go ahead, I'll be very happy of that !
v. 0.1.0 : Initial commit and publishing
v. 0.1.1 : Fix for multiples output files
v. 0.1.2 : Add tests and fix default tasks
v. 0.1.3 : Add travis to test build
v. 0.1.4 : Workaround for ".-5rem" (bug in used parser).