Compare commits

...

5 Commits

Author SHA1 Message Date
John McLear 7e51d8cb46 inc terser 2020-06-07 15:51:55 +00:00
John McLear 88a3c16a0e futher back and using uglify instead of terser 2020-06-07 15:04:51 +00:00
John McLear 3823bddbba remove uglify 2020-06-07 14:55:24 +00:00
John McLear f31a529039 include terser 2020-06-07 14:53:51 +00:00
John McLear 0fc69b1b61 attempt to restore package files 2020-06-07 14:19:48 +00:00
4 changed files with 612 additions and 596 deletions

View File

@ -374,7 +374,7 @@ function getFileCompressed(filename, contentType, callback) {
const compressResult = await compressJS(content); const compressResult = await compressJS(content);
if (compressResult.error) { if (compressResult.error) {
console.error(`Error compressing JS (${filename}) using UglifyJS`, compressResult.error); console.error(`Error compressing JS (${filename}) using terser`, compressResult.error);
} else { } else {
content = compressResult.code.toString(); // Convert content obj code to string content = compressResult.code.toString(); // Convert content obj code to string
} }

View File

@ -3,7 +3,7 @@
*/ */
var CleanCSS = require('clean-css'); var CleanCSS = require('clean-css');
var terser = require("terser"); var terser = require("uglify-js");
var path = require('path'); var path = require('path');
var Threads = require('threads') var Threads = require('threads')

1197
src/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -30,7 +30,7 @@
} }
], ],
"dependencies": { "dependencies": {
"async": "3.2.0", "async": "0.9.0",
"async-stacktrace": "0.0.2", "async-stacktrace": "0.0.2",
"channels": "0.0.4", "channels": "0.0.4",
"cheerio": "0.22.0", "cheerio": "0.22.0",
@ -51,11 +51,11 @@
"lodash.clonedeep": "4.5.0", "lodash.clonedeep": "4.5.0",
"log4js": "0.6.35", "log4js": "0.6.35",
"measured-core": "1.11.2", "measured-core": "1.11.2",
"rehype": "^10.0.0",
"rehype-format": "^3.0.1",
"nodeify": "1.0.1", "nodeify": "1.0.1",
"npm": "6.14.5", "npm": "6.14.5",
"openapi-backend": "2.4.1", "openapi-backend": "2.4.1",
"rehype": "^10.0.0",
"rehype-format": "^3.0.1",
"request": "2.88.2", "request": "2.88.2",
"resolve": "1.1.7", "resolve": "1.1.7",
"security": "1.0.0", "security": "1.0.0",
@ -67,6 +67,7 @@
"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"
}, },