|
|
@@ -11,7 +11,7 @@ const path = require( 'path' );
|
|
|
const webpack = require( 'webpack' );
|
|
|
const { bundler, styles } = require( '@ckeditor/ckeditor5-dev-utils' );
|
|
|
const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
|
|
|
-const BabiliPlugin = require( 'babel-minify-webpack-plugin' );
|
|
|
+const UglifyJsWebpackPlugin = require( 'uglifyjs-webpack-plugin' );
|
|
|
const buildConfig = require( './build-config' );
|
|
|
|
|
|
module.exports = {
|
|
|
@@ -27,19 +27,28 @@ module.exports = {
|
|
|
library: buildConfig.moduleName
|
|
|
},
|
|
|
|
|
|
+ optimization: {
|
|
|
+ minimizer: [
|
|
|
+ new UglifyJsWebpackPlugin( {
|
|
|
+ sourceMap: true,
|
|
|
+ uglifyOptions: {
|
|
|
+ output: {
|
|
|
+ comments: /^\**!/
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } ),
|
|
|
+ ]
|
|
|
+ },
|
|
|
+
|
|
|
plugins: [
|
|
|
new CKEditorWebpackPlugin( {
|
|
|
language: buildConfig.config.language,
|
|
|
additionalLanguages: 'all'
|
|
|
} ),
|
|
|
- new BabiliPlugin( null, {
|
|
|
- comments: false
|
|
|
- } ),
|
|
|
new webpack.BannerPlugin( {
|
|
|
banner: bundler.getLicenseBanner(),
|
|
|
raw: true
|
|
|
- } ),
|
|
|
- new webpack.optimize.ModuleConcatenationPlugin()
|
|
|
+ } )
|
|
|
],
|
|
|
|
|
|
module: {
|