piping-styles
Advanced tools
Comparing version 0.1.0 to 0.1.1
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
var chokidar, colors, fs, options, path; | ||
var chokidar, cleanCSS, colors, fs, options, path; | ||
@@ -13,2 +13,4 @@ path = require("path"); | ||
cleanCSS = require("clean-css"); | ||
options = { | ||
@@ -82,2 +84,5 @@ ignore: /(\/\.|~$)/, | ||
return options.build[type](i, code, function(data) { | ||
if (options.minify) { | ||
data = cleanCSS.process(data); | ||
} | ||
fs.writeFileSync(o, data); | ||
@@ -116,2 +121,5 @@ return console.log("[piping-styles]".bold.magenta, "Built in", Date.now() - start, "ms"); | ||
} | ||
if (options.minify) { | ||
css = cleanCSS.process(css); | ||
} | ||
fs.writeFileSync(path.resolve(basedir, out), css); | ||
@@ -118,0 +126,0 @@ return console.log("[piping-styles]".bold.magenta, "Vendor built in", Date.now() - start, "ms"); |
{ | ||
"name": "piping-styles", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Keep your styles piping hot! Rebuild your styles on change without binaries", | ||
@@ -8,3 +8,4 @@ "main": "lib/piping.js", | ||
"chokidar": "0.5.x", | ||
"colors": "0.6.x" | ||
"colors": "0.6.x", | ||
"clean-css": "0.10.x" | ||
}, | ||
@@ -11,0 +12,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
10790
125
3
+ Addedclean-css@0.10.x
+ Addedclean-css@0.10.2(transitive)
+ Addedcommander@1.1.1(transitive)
+ Addedkeypress@0.1.0(transitive)