Comparing version 0.2.1 to 0.2.2
@@ -12,3 +12,3 @@ var fs = require('fs-base'); | ||
optimizeJS = (function() { | ||
var minify = require("uglify-js").minify; | ||
var minify = require('uglify-js').minify; | ||
return function(content) { | ||
@@ -21,9 +21,9 @@ return minify(content, { | ||
optimizeCSS = (function() { | ||
var process = require("clean-css").process; | ||
var CleanCSS = require('clean-css'); | ||
return function(content) { | ||
return process(content, {keepSpecialComments:0}); | ||
return new CleanCSS({keepSpecialComments:0}).minify(content); | ||
}; | ||
})(); | ||
optimizeHTML = (function() { | ||
var minify = require("html-minifier").minify; | ||
var minify = require('html-minifier').minify; | ||
return function(content) { | ||
@@ -30,0 +30,0 @@ return minify(content, { |
@@ -5,3 +5,3 @@ { | ||
"description":"Packages up CommonJS modules for the browser", | ||
"version":"0.2.1", | ||
"version":"0.2.2", | ||
"author":{ | ||
@@ -33,5 +33,5 @@ "name":"Oleg Podsechin", | ||
"dependencies":{ | ||
"uglify-js":">= 2.1.11", | ||
"clean-css":">= 0.8.3", | ||
"html-minifier":">= 0.5.4" | ||
"uglify-js":">=2.1.11", | ||
"clean-css":">=2.0.0", | ||
"html-minifier":">=0.5.4" | ||
}, | ||
@@ -38,0 +38,0 @@ "preferGlobal":true, |
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
8756
Updatedclean-css@>=2.0.0
Updatedhtml-minifier@>=0.5.4
Updateduglify-js@>=2.1.11