Skip to content

Commit a04bf1f

Browse files
committed
Upgrade dependencies to fix security alerts
1 parent 647a6c2 commit a04bf1f

File tree

3 files changed

+1372
-811
lines changed

3 files changed

+1372
-811
lines changed

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,26 @@
4646
"@typescript-eslint/eslint-plugin": "^2.13.0",
4747
"@typescript-eslint/parser": "^2.13.0",
4848
"babel-loader": "^8.0.6",
49-
"copy-webpack-plugin": "^5.0.4",
49+
"copy-webpack-plugin": "^5.1.1",
5050
"eslint": "^6.8.0",
5151
"eslint-config-prettier": "^6.8.0",
5252
"eslint-plugin-prettier": "^3.1.2",
5353
"fork-ts-checker-webpack-plugin": "^3.0.1",
5454
"git-revision-webpack-plugin": "^3.0.4",
5555
"html-webpack-plugin": "^3.2.0",
5656
"husky": "^3.0.9",
57-
"jest": "^24.9.0",
57+
"jest": "^25.1.0",
5858
"jest-canvas-mock": "^2.1.2",
5959
"patch-package": "^6.2.0",
6060
"prettier": "1.18.2",
61-
"ts-jest": "^24.1.0",
61+
"terser-webpack-plugin": "^2.3.4",
62+
"ts-jest": "^25.2.0",
6263
"ts-loader": "^6.2.1",
6364
"ts-node": "^8.4.1",
6465
"typescript": "^3.6.4",
65-
"uglifyjs-webpack-plugin": "^2.2.0",
66-
"webpack": "^4.41.2",
66+
"webpack": "^4.41.5",
6767
"webpack-cli": "^3.3.10",
68-
"webpack-dev-server": "^3.9.0",
68+
"webpack-dev-server": "^3.10.3",
6969
"webpack-merge": "^4.2.2"
7070
},
7171
"scripts": {

webpack.common.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const gitRevisionPlugin = new GitRevisionPlugin({
66
});
77
const CopyWebpackPlugin = require("copy-webpack-plugin");
88
const HtmlWebpackPlugin = require("html-webpack-plugin");
9+
const TerserPlugin = require('terser-webpack-plugin');
910

1011
module.exports = {
1112
entry: {
@@ -37,5 +38,8 @@ module.exports = {
3738
],
3839
resolve: {
3940
extensions: [".tsx", ".ts", ".js", ".jsx"]
40-
}
41+
},
42+
optimization: {
43+
minimizer: [new TerserPlugin()],
44+
},
4145
};

0 commit comments

Comments
 (0)