stale: Terser instead of uglify (#4075)
parent
56f6973209
commit
552b6d7adb
|
@ -23,8 +23,6 @@ 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 StringDecoder = require('string_decoder').StringDecoder;
|
|
||||||
var CleanCSS = require('clean-css');
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var plugins = require("ep_etherpad-lite/static/js/pluginfw/plugins");
|
var plugins = require("ep_etherpad-lite/static/js/pluginfw/plugins");
|
||||||
var RequireKernel = require('etherpad-require-kernel');
|
var RequireKernel = require('etherpad-require-kernel');
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var CleanCSS = require('clean-css');
|
var CleanCSS = require('clean-css');
|
||||||
var uglifyJS = require("uglify-js");
|
var terser = require("terser");
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var Threads = require('threads')
|
var Threads = require('threads')
|
||||||
|
|
||||||
function compressJS(content)
|
function compressJS(content)
|
||||||
{
|
{
|
||||||
return uglifyJS.minify(content);
|
return terser.minify(content);
|
||||||
}
|
}
|
||||||
|
|
||||||
function compressCSS(filename, ROOT_DIR)
|
function compressCSS(filename, ROOT_DIR)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -62,11 +62,11 @@
|
||||||
"semver": "5.6.0",
|
"semver": "5.6.0",
|
||||||
"slide": "1.1.6",
|
"slide": "1.1.6",
|
||||||
"socket.io": "2.1.1",
|
"socket.io": "2.1.1",
|
||||||
|
"terser": "^4.7.0",
|
||||||
"threads": "^1.4.0",
|
"threads": "^1.4.0",
|
||||||
"tiny-worker": "^2.3.0",
|
"tiny-worker": "^2.3.0",
|
||||||
"tinycon": "0.0.1",
|
"tinycon": "0.0.1",
|
||||||
"ueberdb2": "0.4.9",
|
"ueberdb2": "0.4.9",
|
||||||
"uglify-js": "3.8.1",
|
|
||||||
"underscore": "1.8.3",
|
"underscore": "1.8.3",
|
||||||
"unorm": "1.4.1"
|
"unorm": "1.4.1"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue