Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Clean CSS instead of UglifyCSS to keep first comment in style.min.css #23

Closed
kevinmamaqi opened this issue Nov 3, 2016 · 2 comments

Comments

@kevinmamaqi
Copy link

Hello,

I've checked the uflifycss npm package and I can't find an option like keepspecialcomments in order to keep the theme info at the top in style.min.css, maybe using CleanCSS (https://www.npmjs.com/package/clean-css) would be an alternative.

I'm asking because maybe there are more reasons to use UglifyCSS instead of CleanCSS that I don't know.

@ahmadawais
Copy link
Owner

@kevinmamaqi to keep special comments just use !.

E.g. /*!

@ahmadawais
Copy link
Owner

@kevinmamaqi Clean CSS looks pretty good, I will see if we can port to it. Your PR is welcomed if you want to do that. I am also working on a major release of WPGulp in the first quarter of 2017. We will have a lot more automation and a WPGulp CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants