-
Notifications
You must be signed in to change notification settings - Fork 41
options version 3x #5
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
Conversation
options.noRebase = true; | ||
if (options.noAdvanced === undefined) { | ||
options.noAdvanced = true; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw. can't we just remove these conditions at all? Obviously undefined
is already false
by default.
Well clean css sets advanced and rebase to true by default, so we have to set it explicit to false on undefined. And yes indeed the --skip..... option do make any sense now and can be replace by the advanced and rebase options |
Ah, indeed - my bad (what a mess! :). OK, then can we simply put plugin's default values there, e.g. just:
Probably it's already getting a bit prose but would not it be more straight-forward to keep all this in one place? (I.e. why to bother fiddling with options in ` |
Ah, never mind I can see it won't be correct (since plugin can be created w/o (Probably I need to experiment with creating similar plugins myself to see if such things can be simplified - having 4 files and 3 points of |
The plugin parses the command line options to cleancss, which when i |
Yes just checked and the command line is unchanged from v2 to v3. So when the plugin parses a string, we are calling from lessc and should |
Well i see now. Excuse me for the misunderstanding. |
No worries. |
But........ with foo.less: .foo {
background-size: 200px; //for old browsers
background-size: cover;
} Both .foo{background-size:cover} Where i expect that .foo{background-size:200px;background-size:cover} |
I think i may have intended to change to the same defaults as clean css but |
Okay, now i see your changes and the code (im just on a mobile) i see your changes are all good apart from the changes to parse options - unless clean css dont call it skip rebase on the command line. |
I think clean css calls it |
Ha, yes. Id say we need both options for compatability. |
My PR has both options (turned to false by default). To turn them on you should set |
I meant rebased and skip-rebase.. |
As far as i understand the option should be changed according https://github.com/jakubpawlowicz/clean-css#how-to-upgrade-clean-css-from-2x-to-3x
Both
advanced
andrebase
are set to false by default now.