Skip to content

How do we preserve ALL comments? #30

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

Closed
IAMtheIAM opened this issue Dec 13, 2018 · 3 comments
Closed

How do we preserve ALL comments? #30

IAMtheIAM opened this issue Dec 13, 2018 · 3 comments

Comments

@IAMtheIAM
Copy link

I tried changing specialComments to 0, 1, and all and it had no effect. It kept the special comments.

How do we tell it to keep all comments?

@nolanwrightdev
Copy link

I found the README misleading on this point. I got it working with cleancss -O1 'all:on;specialComments:0' [...]. So the optimization flags are not mutually exclusive. Even if you want level 2 optimizations, you need to set specialComments with the -O1 option.

@l2aelba
Copy link

l2aelba commented Dec 3, 2019

Got it:

cleancss -O1 'specialComments:0' --output style.min.css style.css

I noted it O1 (o-one) not 01 (zero-one), it so wired to use this lol

@jakubpawlowicz
Copy link
Collaborator

@l2aelba - I've updated docs to make it clear what character needs to prefix optimizations level.

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

4 participants