Skip to content

Commit 5721aa5

Browse files
committed
chore(deps): Remove UglifyJS in favor of Terser.
1 parent 15be93a commit 5721aa5

File tree

3 files changed

+23
-95
lines changed

3 files changed

+23
-95
lines changed

config/webpack.common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable */
22
const { resolve } = require('path');
33
const { readFileSync } = require('fs');
4-
const UglifyJS = require('uglify-js');
4+
const Terser = require('terser');
55

66
const webpack = require('webpack');
77
const CopyPlugin = require('copy-webpack-plugin');
@@ -86,7 +86,7 @@ module.exports = function(options) {
8686
template: './src/index.pug',
8787
inject: false,
8888
// see https://github.com/filamentgroup/loadCSS
89-
loadCss: UglifyJS.minify(readFileSync('./node_modules/fg-loadcss/src/cssrelpreload.js').toString()).code,
89+
loadCss: Terser.minify(readFileSync('./node_modules/fg-loadcss/src/cssrelpreload.js').toString()).code,
9090
config: options.websiteConfig,
9191
revision: options.revision,
9292
preConnect: preConnect,

npm-shrinkwrap.json

Lines changed: 21 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
"svgo-loader": "2.2.0",
122122
"terser-webpack-plugin": "1.3.0",
123123
"typescript": "3.4.5",
124-
"uglifyjs-webpack-plugin": "2.1.3",
125124
"url-loader": "1.1.2",
126125
"webpack": "4.32.2",
127126
"webpack-bundle-analyzer": "3.3.2",

0 commit comments

Comments
 (0)