stale: Terser instead of uglify (#4075)

pull/3839/head
John McLear 2020-06-05 23:10:24 +01:00 committed by GitHub
parent 56f6973209
commit 552b6d7adb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 615 additions and 608 deletions

View File

@ -23,8 +23,6 @@ var ERR = require("async-stacktrace");
var settings = require('./Settings');
var async = require('async');
var fs = require('fs');
var StringDecoder = require('string_decoder').StringDecoder;
var CleanCSS = require('clean-css');
var path = require('path');
var plugins = require("ep_etherpad-lite/static/js/pluginfw/plugins");
var RequireKernel = require('etherpad-require-kernel');

View File

@ -3,13 +3,13 @@
*/
var CleanCSS = require('clean-css');
var uglifyJS = require("uglify-js");
var terser = require("terser");
var path = require('path');
var Threads = require('threads')
function compressJS(content)
{
return uglifyJS.minify(content);
return terser.minify(content);
}
function compressCSS(filename, ROOT_DIR)

1215
src/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -62,11 +62,11 @@
"semver": "5.6.0",
"slide": "1.1.6",
"socket.io": "2.1.1",
"terser": "^4.7.0",
"threads": "^1.4.0",
"tiny-worker": "^2.3.0",
"tinycon": "0.0.1",
"ueberdb2": "0.4.9",
"uglify-js": "3.8.1",
"underscore": "1.8.3",
"unorm": "1.4.1"
},