File tree 4 files changed +14
-13
lines changed
4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,7 @@ module.exports = function(less) {
33
33
var css = output . styles ;
34
34
if ( sourceMap ) {
35
35
var sourceMapURL = sourceMap . getSourceMapURL ( ) ;
36
- if ( sourceMap . getCSSAppendage ) {
37
- css += sourceMap . getCSSAppendage ( ) ;
38
- } else {
39
- // TODO remove once latest version of less.js (>2.1.0) is released
40
- if ( sourceMap . isInline ( ) ) {
41
- sourceMapURL = "data:application/json;base64," + new Buffer ( output . sourceMap ) . toString ( 'base64' ) ;
42
- }
43
- css += "/*# sourceMappingURL=" + sourceMapURL + " */" ;
44
- }
36
+ css += sourceMap . getCSSAppendage ( ) ;
45
37
}
46
38
47
39
return css ;
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ LessPluginCleanCSS.prototype = {
17
17
setOptions : function ( options ) {
18
18
this . options = parseOptions ( options ) ;
19
19
} ,
20
- //TODO - needs to be higher than this for work with map inline
21
20
minVersion : [ 2 , 1 , 0 ]
22
21
} ;
23
22
Original file line number Diff line number Diff line change @@ -18,11 +18,21 @@ module.exports = function(options) {
18
18
break ;
19
19
// for compatibility - does nothing
20
20
case "skip-advanced" :
21
- options . noAdvanced = true ;
21
+ options . advanced = false ;
22
22
break ;
23
23
case "advanced" :
24
- options . noAdvanced = false ;
24
+ options . advanced = true ;
25
25
break ;
26
+ case "skip-rebase" :
27
+ options . rebase = false ;
28
+ break ;
29
+ case "skip-aggressive-merging" :
30
+ options . aggressiveMerging = false ;
31
+ break ;
32
+ case "skip-shorthand-compacting" :
33
+ options . shorthandCompacting = false ;
34
+ break ;
35
+ case "c" :
26
36
case "compatibility" :
27
37
options . compatibility = argSplit [ 1 ] ;
28
38
break ;
Original file line number Diff line number Diff line change 27
27
"node" : " >=0.4.2"
28
28
},
29
29
"dependencies" : {
30
- "clean-css" : " git://github.com/jakubpawlowicz/clean-css.git#312fdf3b9d423c1e2064eb476b7970a9bcd0ffe6 "
30
+ "clean-css" : " ^3.0.1 "
31
31
},
32
32
"devDependencies" : {
33
33
},
You can’t perform that action at this time.
0 commit comments