This repository was archived by the owner on Jun 26, 2020. It is now read-only.
File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 54
54
"postcss-loader" : " ^3.0.0" ,
55
55
"raw-loader" : " ^3.1.0" ,
56
56
"style-loader" : " ^1.0.0" ,
57
- "uglifyjs -webpack-plugin" : " ^1.3.0 " ,
57
+ "terser -webpack-plugin" : " ^2.2.1 " ,
58
58
"webpack" : " ^4.39.1" ,
59
59
"webpack-cli" : " ^3.3.6"
60
60
},
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const path = require( 'path' );
11
11
const webpack = require ( 'webpack' ) ;
12
12
const { bundler, styles } = require ( '@ckeditor/ckeditor5-dev-utils' ) ;
13
13
const CKEditorWebpackPlugin = require ( '@ckeditor/ckeditor5-dev-webpack-plugin' ) ;
14
- const UglifyJsWebpackPlugin = require ( 'uglifyjs -webpack-plugin' ) ;
14
+ const TerserPlugin = require ( 'terser -webpack-plugin' ) ;
15
15
16
16
module . exports = {
17
17
devtool : 'source-map' ,
@@ -31,14 +31,15 @@ module.exports = {
31
31
32
32
optimization : {
33
33
minimizer : [
34
- new UglifyJsWebpackPlugin ( {
34
+ new TerserPlugin ( {
35
35
sourceMap : true ,
36
- uglifyOptions : {
36
+ terserOptions : {
37
37
output : {
38
38
// Preserve CKEditor 5 license comments.
39
39
comments : / ^ ! /
40
40
}
41
- }
41
+ } ,
42
+ extractComments : false
42
43
} )
43
44
]
44
45
} ,
You can’t perform that action at this time.
0 commit comments