headstart icon indicating copy to clipboard operation
headstart copied to clipboard

gulp-minify-css removes `px` values

Open flovan opened this issue 11 years ago • 0 comments

The rem mixin generates pixel fallbacks for older browsers, though when IE8 or lower needs to be supported, gulp-minify-css strips these out, leaving only the rem values and a crippled IE8 in its wake.

Current fix:

.pipe(plugins.minifyCss({ compatibility: 'ie8', noAdvanced: true }))

Think about exposing these through a supportOldie config option, and keep an eye on https://github.com/jakubpawlowicz/clean-css/issues/375 so noAdvanced can be removed.

flovan avatar Oct 22 '14 13:10 flovan