This repository was archived by the owner on Jun 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 5454 "postcss-loader" : " ^3.0.0" ,
5555 "raw-loader" : " ^3.1.0" ,
5656 "style-loader" : " ^1.0.0" ,
57- "uglifyjs -webpack-plugin" : " ^1.3.0 " ,
57+ "terser -webpack-plugin" : " ^2.2.1 " ,
5858 "webpack" : " ^4.39.1" ,
5959 "webpack-cli" : " ^3.3.6"
6060 },
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const path = require( 'path' );
1111const webpack = require ( 'webpack' ) ;
1212const { bundler, styles } = require ( '@ckeditor/ckeditor5-dev-utils' ) ;
1313const CKEditorWebpackPlugin = require ( '@ckeditor/ckeditor5-dev-webpack-plugin' ) ;
14- const UglifyJsWebpackPlugin = require ( 'uglifyjs -webpack-plugin' ) ;
14+ const TerserPlugin = require ( 'terser -webpack-plugin' ) ;
1515
1616module . exports = {
1717 devtool : 'source-map' ,
@@ -31,14 +31,15 @@ module.exports = {
3131
3232 optimization : {
3333 minimizer : [
34- new UglifyJsWebpackPlugin ( {
34+ new TerserPlugin ( {
3535 sourceMap : true ,
36- uglifyOptions : {
36+ terserOptions : {
3737 output : {
3838 // Preserve CKEditor 5 license comments.
3939 comments : / ^ ! /
4040 }
41- }
41+ } ,
42+ extractComments : false
4243 } )
4344 ]
4445 } ,
You can’t perform that action at this time.
0 commit comments