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

Option keepSpecialComments is not recognized #3

Closed
DaSchTour opened this issue Nov 24, 2014 · 3 comments
Closed

Option keepSpecialComments is not recognized #3

DaSchTour opened this issue Nov 24, 2014 · 3 comments

Comments

@DaSchTour
Copy link

Somehow the option keepSpecialComments from clean-css doesn't work.
--keepSpecialComments=0 and --keepspecialcomments=0 is not recognized and leads to an error. So the documentation is wrong, as not all options from clean-css work

@seven-phases-max
Copy link
Member

Probably we need to update less-docs as well but I can't find any keepSpecialComments there by now (could you point to the section where you see it?).
Either way here you'll find the list of currently supported options within this plugin (you'll also see this list with lessc --clean-css command).

P.S. Ah, I see your mistake now. Programmatic keepSpecialComments is set via s0 and s1 cli options - just the same way it's in clean-css itself.

@lukeapage
Copy link
Member

It is correct in the documentation
https://github.com/less/less-plugin-clean-css/blob/master/lib/usage.js
I think grunt-contrib-less might be wrong once my v2 pr is pulled - that might need its tests and readme updated.

@DaSchTour
Copy link
Author

Okay. That's confusing as hell -.-
s0 and s1 work correctly.

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

3 participants