This webpack configuration watch no problem, but is not the output file, not the map, what all don’t output, until I see stackoverflow.com/questions/5…
{
mode: 'production'.entry: {
vendors: [...]. },devtool: 'source-map'.output: {
path: '... '.filename: 'js/[name]__[chunkhash:10].js'.chunkFilename: 'js/[name]_[id].js'.publicPath: '/'
},
optimization: {
minimizer: [ [OptimizeCssAssetsWebpackPlugin], [UglifyJsPlugin] ]
},
module: { rules: [...]. },resolve: {
alias: {... },extensions: [
'.js'.'.styl']},plugins: [ MiniCssExtractPlugin { options: [Object]]}}Copy the code
optimization.minimize = false
If using uglifyjs-webpack-plugin, be sure to set minimize to false by the title