cssnext-loader icon indicating copy to clipboard operation
cssnext-loader copied to clipboard

how can i pass `safe` as an option to `cssnano`?

Open jonathanong opened this issue 10 years ago • 4 comments

cssnano in non-safe mode is messing with my CSS

jonathanong avatar Oct 01 '15 01:10 jonathanong

oh... cssnext's version of cssnano doesn't even support it yet...

jonathanong avatar Oct 01 '15 06:10 jonathanong

I need this as well, it seems the z-indexes get "rebased" (yikes!)

prewk avatar Dec 28 '15 12:12 prewk

safe option doesn't exist yet (in the version used by cssnext). Try using postcss + postcss-cssnext + cssnano directly (this will be the recommended version in a week or two ;) ). See https://github.com/cssnext/postcss-cssnext#readme

MoOx avatar Dec 28 '15 14:12 MoOx

I did that, and it solved my problem! Thanks!

prewk avatar Dec 28 '15 14:12 prewk