lahmatiy / postcss-csso

PostCSS plugin to minify CSS using CSSO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v3 out now

scott-thrillist opened this issue · comments

Hi, I am in need the comments option from 2.1 to get my css to work correctly with autoprefixer, and currently the postcss version is stuck at 2.0. Any plans to update?

https://www.npmjs.com/package/postcss-csso

Thanks @lahmatiy !

postcss-csso 2.0 uses csso 3.0 (see https://github.com/lahmatiy/postcss-csso/blob/master/package.json#L42)
Previous versions is also used ^2.1.0 and ^2.0.0.

Thanks for the quick response! Odd that this line is not working:

require('postcss-csso')({comments: 'exclamation'})

I'll investigate further

EDIT: also of note, I'm using the postcss-loader for Webpack 2

comments: 'exclamation' is default setting. With this option value CSSO left top level /*! comments */ only.

It seems to be stripping them out either way for whatever reason, can you confirm it's working as expected?

Can you provide an example when postcss-csso performs unexpected?

There is no activity on issue for a while. Closing for now. Feel free to reopen the issue if it still actual.