Revert "stale: Terser instead of uglify (#4075)"

This reverts commit 552b6d7adb.
This commit is contained in:
John McLear 2020-06-05 23:55:14 +00:00
parent b6bcdaf772
commit 423be7f081
4 changed files with 608 additions and 615 deletions

View file

@ -23,6 +23,8 @@ 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');

View file

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