aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.d/minify.js
blob: d85c861cec1e9ba3464260a020f866e23bee0457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (defined.PRODUCTION) {
    const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

    config.optimization = {
        minimizer: [
             new UglifyJSPlugin({
                uglifyOptions: {
                    compress: {
                        unused: false
                    }
                }
             })
        ]
    }

}