Skip to content

Commit 63a5dc7

Browse files
committed
Merge pull request #5 from bassjobsen/master
options version 3x
2 parents f5c2399 + 2bbae57 commit 63a5dc7

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and then on the command line,
1717
lessc file.less --clean-css="--s1 --advanced --compatibility=ie8"
1818
```
1919

20-
See [clean-css](https://github.com/jakubpawlowicz/clean-css) for the available command options - the only difference is advanced which we default to false, because it is not always entirely safe.
20+
See [clean-css](https://github.com/jakubpawlowicz/clean-css) for the available command options - the only differences are `advanced` and `rebase` which we default to false, because it is not always entirely safe.
2121

2222
## Programmatic usage
2323

lib/clean-css-processor.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ module.exports = function(less) {
1919
options.keepSpecialComments = "*";
2020
}
2121
options.processImport = false;
22-
options.noRebase = true;
23-
if (options.noAdvanced === undefined) {
24-
options.noAdvanced = true;
22+
23+
if (options.rebase === undefined) {
24+
options.rebase = false;
25+
}
26+
27+
if (options.advanced === undefined) {
28+
options.advanced = false;
2529
}
2630

2731
var output = new CleanCSS(options).minify(css);

lib/parse-options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ module.exports = function(options) {
3030
case "advanced":
3131
options.advanced = true;
3232
break;
33-
case "skip-rebase":
34-
options.rebase = false;
33+
case "rebase":
34+
options.rebase = true;
3535
break;
3636
case "skip-aggressive-merging":
3737
options.aggressiveMerging = false;

0 commit comments

Comments
 (0)