use latest cleanCSS
This commit is contained in:
parent
9afcd89167
commit
b9802616b6
|
@ -23,7 +23,7 @@ var ERR = require("async-stacktrace");
|
||||||
var settings = require('./Settings');
|
var settings = require('./Settings');
|
||||||
var async = require('async');
|
var async = require('async');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var cleanCSS = require('clean-css');
|
var CleanCSS = require('clean-css');
|
||||||
var jsp = require("uglify-js").parser;
|
var jsp = require("uglify-js").parser;
|
||||||
var pro = require("uglify-js").uglify;
|
var pro = require("uglify-js").uglify;
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
@ -410,7 +410,8 @@ function compressJS(values)
|
||||||
function compressCSS(values)
|
function compressCSS(values)
|
||||||
{
|
{
|
||||||
var complete = values.join("\n");
|
var complete = values.join("\n");
|
||||||
return cleanCSS.process(complete);
|
var minimized = new CleanCSS().minify(complete).styles;
|
||||||
|
return minimized;
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.minify = minify;
|
exports.minify = minify;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"express" : "3.8.1",
|
"express" : "3.8.1",
|
||||||
"async" : "0.9.0",
|
"async" : "0.9.0",
|
||||||
"connect" : "2.7.11",
|
"connect" : "2.7.11",
|
||||||
"clean-css" : "0.3.2",
|
"clean-css" : "3.0.8",
|
||||||
"uglify-js" : "2.4.16",
|
"uglify-js" : "2.4.16",
|
||||||
"formidable" : "1.0.16",
|
"formidable" : "1.0.16",
|
||||||
"log4js" : "0.6.22",
|
"log4js" : "0.6.22",
|
||||||
|
|
Loading…
Reference in New Issue