systemjs / plugin-css

CSS loader plugin
MIT License
92 stars 60 forks source link

Enable safe mode on cssnano by default? #119

Closed mayank23 closed 7 years ago

mayank23 commented 7 years ago

plugin-css 0.1.30 includes cssnano. cssnano will rebase z-index values by default, which broke some of my stuff. Can there be an option to disable or enable safe mode?

z-index rebase optimization: http://cssnano.co/optimisations/zindex/

safe mode flag: http://cssnano.co/options/#optionssafe-bool

Thanks

guybedford commented 7 years ago

Safe mode is enabled by default at https://github.com/systemjs/plugin-css/blob/master/css-plugin-base-builder.js#L141 as of version 0.1.32. Ensure you're running this latest version.

mayank23 commented 7 years ago

Thanks. Missed the update.