use latest cleanCSS

This commit is contained in:
John McLear 2015-02-04 17:57:34 +00:00
parent 9afcd89167
commit b9802616b6
2 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,7 @@ var ERR = require("async-stacktrace");
var settings = require('./Settings');
var async = require('async');
var fs = require('fs');
var cleanCSS = require('clean-css');
var CleanCSS = require('clean-css');
var jsp = require("uglify-js").parser;
var pro = require("uglify-js").uglify;
var path = require('path');
@ -410,7 +410,8 @@ function compressJS(values)
function compressCSS(values)
{
var complete = values.join("\n");
return cleanCSS.process(complete);
var minimized = new CleanCSS().minify(complete).styles;
return minimized;
}
exports.minify = minify;

View File

@ -21,7 +21,7 @@
"express" : "3.8.1",
"async" : "0.9.0",
"connect" : "2.7.11",
"clean-css" : "0.3.2",
"clean-css" : "3.0.8",
"uglify-js" : "2.4.16",
"formidable" : "1.0.16",
"log4js" : "0.6.22",