Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit b2734ca

Browse files
authored
Merge pull request #19 from ckeditor/i/1353
Other: Replaced UglifyJS with Terser. See ckeditor/ckeditor5#1353.
2 parents 729fe00 + 4cea1d0 commit b2734ca

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
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
},

webpack.config.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const path = require( 'path' );
1111
const webpack = require( 'webpack' );
1212
const { bundler, styles } = require( '@ckeditor/ckeditor5-dev-utils' );
1313
const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
14-
const UglifyJsWebpackPlugin = require( 'uglifyjs-webpack-plugin' );
14+
const TerserPlugin = require( 'terser-webpack-plugin' );
1515

1616
module.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
},

0 commit comments

Comments
 (0)