Skip to content

Commit

Permalink
chore(deps): Remove UglifyJS in favor of Terser.
Browse files Browse the repository at this point in the history
  • Loading branch information
freezy committed May 25, 2019
1 parent 15be93a commit 5721aa5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 95 deletions.
4 changes: 2 additions & 2 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable */
const { resolve } = require('path');
const { readFileSync } = require('fs');
const UglifyJS = require('uglify-js');
const Terser = require('terser');

const webpack = require('webpack');
const CopyPlugin = require('copy-webpack-plugin');
Expand Down Expand Up @@ -86,7 +86,7 @@ module.exports = function(options) {
template: './src/index.pug',
inject: false,
// see https://github.com/filamentgroup/loadCSS
loadCss: UglifyJS.minify(readFileSync('./node_modules/fg-loadcss/src/cssrelpreload.js').toString()).code,
loadCss: Terser.minify(readFileSync('./node_modules/fg-loadcss/src/cssrelpreload.js').toString()).code,
config: options.websiteConfig,
revision: options.revision,
preConnect: preConnect,
Expand Down
113 changes: 21 additions & 92 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
"svgo-loader": "2.2.0",
"terser-webpack-plugin": "1.3.0",
"typescript": "3.4.5",
"uglifyjs-webpack-plugin": "2.1.3",
"url-loader": "1.1.2",
"webpack": "4.32.2",
"webpack-bundle-analyzer": "3.3.2",
Expand Down

0 comments on commit 5721aa5

Please sign in to comment.