less-plugin-clean-css
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -27,24 +27,25 @@ var CleanCSS = require('clean-css'); | ||
for(var i = 0; i < cleanOptionArgs.length; i++) { | ||
var argSplit = cleanOptionArgs[i].split("="); | ||
switch(argSplit[0]) { | ||
case "--keep-line-breaks": | ||
case "-b": | ||
var argSplit = cleanOptionArgs[i].split("="), | ||
argName = argSplit[0].replace(/^-+/,""); | ||
switch(argName) { | ||
case "keep-line-breaks": | ||
case "b": | ||
options.keepBreaks = true; | ||
break; | ||
case "--s0": | ||
case "s0": | ||
options.keepSpecialComments = 0; | ||
break; | ||
case "--s1": | ||
case "s1": | ||
options.keepSpecialComments = 1; | ||
break; | ||
case "--skip-advanced": | ||
case "skip-advanced": | ||
options.noAdvanced = true; | ||
break; | ||
case "--advanced": | ||
case "advanced": | ||
options.noAdvanced = false; | ||
break; | ||
case "--compatibility": | ||
case "compatibility": | ||
options.compatibility = argSplit[1]; | ||
break; | ||
case "--rounding-precision": | ||
case "rounding-precision": | ||
options.roundingPrecision = Number(argSplit[1]); | ||
@@ -54,4 +55,4 @@ break; | ||
console.log("unrecognised clean-css option '" + argSplit[0] + "'"); | ||
console.log("we support only arguments that make sense for less, '--keep-line-breaks', '-b'"); | ||
console.log("'--s0', '--s1', '--advanced', '--skip-advanced', '--compatibility', '--rounding-precision'"); | ||
console.log("we support only arguments that make sense for less, 'keep-line-breaks', 'b'"); | ||
console.log("'s0', 's1', 'advanced', 'skip-advanced', 'compatibility', 'rounding-precision'"); | ||
throw new Error(); | ||
@@ -58,0 +59,0 @@ } |
{ | ||
"name": "less-plugin-clean-css", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "clean-css plugin for less.js", | ||
@@ -33,3 +33,2 @@ "homepage": "http://lesscss.org", | ||
"devDependencies": { | ||
"less": ">=2.0.0" | ||
}, | ||
@@ -36,0 +35,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15353
0
68