File tree Expand file tree Collapse file tree 3 files changed +230
-24
lines changed
Expand file tree Collapse file tree 3 files changed +230
-24
lines changed Original file line number Diff line number Diff line change 9393 "rimraf" : " ^3.0.0" ,
9494 "sinon" : " ^7.5.0" ,
9595 "sinon-chai" : " ^3.3.0" ,
96+ "terser-webpack-plugin" : " ^2.3.5" ,
9697 "ts-loader" : " ^6.2.1" ,
9798 "ts-node" : " ^8.4.1" ,
9899 "tslint" : " ^5.20.0" ,
99100 "tslint-config-prettier" : " ^1.18.0" ,
100101 "typescript" : " ^3.6.4" ,
101- "uglifyjs-webpack-plugin" : " ^2.2.0" ,
102102 "webpack" : " ^4.41.2" ,
103103 "webpack-cli" : " ^3.3.10" ,
104104 "webpack-dev-server" : " ^3.9.0"
Original file line number Diff line number Diff line change 11const webpack = require ( "webpack" ) ;
22const path = require ( "path" ) ;
3- const UglifyJsPlugin = require ( "uglifyjs -webpack-plugin" ) ;
3+ const TerserPlugin = require ( "terser -webpack-plugin" ) ;
44
55module . exports = env => {
66 if ( ! env ) env = { production : false , karma : false } ;
@@ -55,10 +55,10 @@ module.exports = env => {
5555 concatenateModules : true ,
5656 minimize : true ,
5757 minimizer : [
58- new UglifyJsPlugin ( {
58+ new TerserPlugin ( {
5959 cache : true ,
6060 parallel : 4 ,
61- uglifyOptions : {
61+ terserOptions : {
6262 output : {
6363 comments : false
6464 }
You can’t perform that action at this time.
0 commit comments