Answer the question
In order to leave comments, you need to log in
Why isn't Uglify working?
Outputs the code simply assembled into one file without compression
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: {app: './js/index.js'}
output: {
filename: '[name].js',
path: path.resolve(__dirname, './dev/js')
},
optimization: {
minimizer: [new UglifyJsPlugin()],
},
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question