Here\'s my webpack.config.js
var webpack = require(\"webpack\");
module.exports = {
entry: \"./entry.js\",
devtool: \"source-map\",
outp
According with this line: https://github.com/pingyuanChen/webpack-uglify-js-plugin/blob/master/index.js#L117
should be something like:
var webpack = require("webpack");
module.exports = {
entry: "./entry.js",
devtool: "source-map",
output: {
path: "./dist",
filename: "bundle.js"
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
minimize: true,
compress: false
})
]
};
Indeed you can have multiple builds by exporting different configs according your env / argv strategies.