A Rework plugin to add pixel fallback for properties using rem units. This is a build time workaround for browsers that don't understand the rem unit. (cough IE<9)
Installation
npm install rework-rem-fallback
Use
As a Rework plugin:
// dependenciesvar fs = ;var rework = ;var remFallback = ; // css to be processedvar css = fs; // process css using rework-rem-fallback (default base 16px)var out = ; // process css using rework-rem-fallback (custom base 14px)var out14 = ;
Output
yields: