File tree Expand file tree Collapse file tree 3 files changed +226
-25
lines changed
Expand file tree Collapse file tree 3 files changed +226
-25
lines changed Original file line number Diff line number Diff line change 102102 "rimraf" : " ^3.0.0" ,
103103 "sinon" : " ^7.5.0" ,
104104 "sinon-chai" : " ^3.3.0" ,
105+ "terser-webpack-plugin" : " ^2.3.4" ,
105106 "ts-loader" : " ^6.2.1" ,
106107 "ts-node" : " ^8.4.1" ,
107108 "tslint" : " ^5.20.0" ,
108109 "tslint-config-prettier" : " ^1.18.0" ,
109110 "typescript" : " ^3.6.4" ,
110- "uglifyjs-webpack-plugin" : " ^2.2.0" ,
111111 "webpack" : " ^4.41.2" ,
112112 "webpack-cli" : " ^3.3.10" ,
113113 "webpack-concat-plugin" : " ^3.0.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 } ;
@@ -51,10 +51,10 @@ module.exports = env => {
5151 concatenateModules : true ,
5252 minimize : true ,
5353 minimizer : [
54- new UglifyJsPlugin ( {
54+ new TerserPlugin ( {
5555 cache : true ,
5656 parallel : 4 ,
57- uglifyOptions : {
57+ terserOptions : {
5858 output : {
5959 comments : false
6060 }
You can’t perform that action at this time.
0 commit comments