Skip to content

Commit e44c1ea

Browse files
authored
Merge pull request #27 from zorkow/update_deps
Update packages. Move from uglify to terser.
2 parents 04ffe3d + 38c70d9 commit e44c1ea

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@
2525
"homepage": "https://github.com/zorkow/context-menu",
2626
"dependencies": {},
2727
"devDependencies": {
28-
"@babel/core": "^7.10.1",
29-
"@babel/preset-env": "^7.10.1",
28+
"@babel/core": "^7.11.1",
29+
"@babel/preset-env": "^7.11.0",
3030
"babel-loader": "^8.1.0",
31-
"ts-loader": "^6.2.0",
32-
"tslint": "^5.12.1",
31+
"terser-webpack-plugin": "^4.1.0",
32+
"tslint": "^6.1.3",
3333
"tslint-jsdoc-rules": "^0.2.0",
3434
"tslint-unix-formatter": "^0.2.0",
3535
"typescript": "^3.*",
36-
"uglifyjs-webpack-plugin": "^2.2.0",
37-
"webpack": "^4.43.0",
38-
"webpack-cli": "^3.3.11"
36+
"webpack": "^4.44.1",
37+
"webpack-cli": "^3.3.12"
3938
},
4039
"files": [
4140
"LICENSE",

webpack.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path');
2-
const Uglify = require('uglifyjs-webpack-plugin');
2+
const TerserPlugin = require('terser-webpack-plugin');
33

44
module.exports = {
55
entry: './js/index.js',
@@ -29,8 +29,9 @@ module.exports = {
2929
path: path.resolve(__dirname, 'dist')
3030
},
3131
optimization: {
32-
minimizer: [new Uglify({
33-
uglifyOptions: {
32+
minimize: true,
33+
minimizer: [new TerserPlugin({
34+
terserOptions: {
3435
output: {
3536
ascii_only: true
3637
}

0 commit comments

Comments
 (0)