const common = require("./webpack.config");
const webpack = require("webpack");
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");

module.exports = Object.assign(common, {
    mode: 'production',
    plugins: [
        new UglifyJSPlugin({
            sourceMap: true,
            uglifyOptions: { ecma: 8 },
        }),
        new webpack.DefinePlugin({
            "process.env": {
                NODE_ENV: '"production"',
            },
        }),
    ],
});

@@ -41,432 +41,72 @@
 %22);%0A
-const webpack = require(%22webpack%22);%0Aconst UglifyJSPlugin = require(%22uglifyjs-webpack-plugin%22);%0A%0Amodule.exports = Object.assign(common, %7B%0A    mode: 'production',%0A    plugins: %5B%0A        new UglifyJSPlugin(%7B%0A            sourceMap: true,%0A            uglifyOptions: %7B ecma: 8 %7D,%0A        %7D),%0A        new webpack.DefinePlugin(%7B%0A            %22process.env%22: %7B%0A                NODE_ENV: '%22production%22',%0A            %7D,%0A        %7D),%0A    %5D
+%0Amodule.exports = Object.assign(common, %7B%0A    mode: 'production'
 ,%0A%7D)

Remove unused settings