Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

less-plugin-clean-css

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

less-plugin-clean-css - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

25

lib/clean-css-processor.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc