Merge branch 'require-kernel-change' of https://github.com/ether/etherpad-lite into require-kernel-change

pull/2350/head
John McLear 2014-11-29 03:08:42 +00:00
commit e9686c0d93
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 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');
@ -411,7 +411,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 cleanCSS = new CleanCSS({}).minify(complete);
return cleanCSS;
} }
exports.minify = minify; exports.minify = minify;

View File

@ -20,7 +20,7 @@
"express" : ">3.1.0 <3.9.0", "express" : ">3.1.0 <3.9.0",
"async" : ">=0.9.0", "async" : ">=0.9.0",
"connect" : "2.7.x", "connect" : "2.7.x",
"clean-css" : ">=0.50.x", "clean-css" : ">=2.0.0",
"uglify-js" : ">=2.4.15", "uglify-js" : ">=2.4.15",
"formidable" : ">=1.0.15", "formidable" : ">=1.0.15",
"log4js" : ">=0.6.21", "log4js" : ">=0.6.21",