node-lessify
Advanced tools
Comparing version 0.0.1 to 0.0.2
var less = require('less'); | ||
var cleanCSS = require('clean-css'); | ||
var CleanCSS = require('clean-css'); | ||
var through = require('through'); | ||
@@ -34,4 +34,5 @@ | ||
var compiled = cleanCSS.process(compiled); | ||
var compiled = CleanCSS().minify(compiled); | ||
compiled = func_start + "var css = \"" + compiled.replace(/'/g, "\\'").replace(/"/g, '\\"') + "\";" + func_end; | ||
@@ -38,0 +39,0 @@ this.queue(compiled); |
{ | ||
"name": "node-lessify", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "LESS precompiler and CSS plugin for Browserify v2", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "test/test.js" | ||
}, | ||
@@ -27,3 +27,3 @@ "repository": { | ||
"less": ">= 1.5.0", | ||
"clean-css": "?= 2.0.0" | ||
"clean-css": "2.0.2" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
node-lessify | ||
node-lessify [![Build Status](https://travis-ci.org/wilson428/node-lessify.png)](https://travis-ci.org/wilson428/node-lessify) | ||
============ | ||
@@ -3,0 +3,0 @@ |
@@ -0,6 +1,8 @@ | ||
#!/usr/bin/env node | ||
var fs = require("fs"); | ||
var browserify = require('browserify'); | ||
var lessify = require("../index"); | ||
var assert = require("assert"); | ||
var sampleLESS = __dirname + "/styles.less"; | ||
@@ -16,6 +18,6 @@ var sampleCSS = __dirname + "/styles.css"; | ||
if (err) { | ||
throw err; | ||
assert.fail(err); | ||
} | ||
console.log("LESS and CSS scripts bundled. See " + __dirname + "/test.html"); | ||
fs.writeFile(__dirname + "/bundle.js", src); | ||
}); | ||
assert.ok(src); | ||
}); |
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
5966
11
53
+ Addedclean-css@2.0.2(transitive)
+ Addedcommander@2.0.0(transitive)
Updatedclean-css@2.0.2