Skip to content

Commit

Permalink
Update packages, and use terser-webpack-plugin instead of uglify (whi…
Browse files Browse the repository at this point in the history
…ch causes security alerts).
  • Loading branch information
dpvc committed Aug 17, 2020
1 parent d3b2389 commit ee2be1f
Show file tree
Hide file tree
Showing 3 changed files with 2,343 additions and 1,658 deletions.
7 changes: 4 additions & 3 deletions components/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const Uglify = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');

/**************************************************************/

Expand Down Expand Up @@ -146,8 +146,9 @@ const PACKAGE = function (name, mathjax, libs, dir, dist) {
hints: false
},
optimization: {
minimizer: [new Uglify({
uglifyOptions: {
minimize: true,
minimizer: [new TerserPlugin({
terserOptions: {
output: {
ascii_only: true
}
Expand Down
Loading

0 comments on commit ee2be1f

Please sign in to comment.