diff --git a/examples/webpack/config.js b/examples/webpack/config.js index d5db5e4ee8..47003ebd4d 100644 --- a/examples/webpack/config.js +++ b/examples/webpack/config.js @@ -1,3 +1,4 @@ +const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin'); const ExampleBuilder = require('./example-builder'); const fs = require('fs'); @@ -31,6 +32,16 @@ module.exports = { }] }, optimization: { + minimizer: [ + new UglifyJsPlugin({ + sourceMap: true, + uglifyOptions: { + mangle: { + keep_fnames: true + } + } + }) + ], runtimeChunk: { name: 'common' },