Skip to content

Commit

Permalink
fix(webpack): remove old plugins
Browse files Browse the repository at this point in the history
removed in v4
  • Loading branch information
Awk34 committed Jun 17, 2018
1 parent fc7aef6 commit f1d3a7c
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions templates/app/webpack.make.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,31 +341,6 @@ module.exports = function makeWebpackConfig(options) {
);
}

// Add build specific plugins
if(BUILD) {
config.plugins.push(
// Reference: http://webpack.github.io/docs/list-of-plugins.html#noerrorsplugin
// Only emit files when there are no errors
new webpack.NoErrorsPlugin(),

// Reference: http://webpack.github.io/docs/list-of-plugins.html#dedupeplugin
// Dedupe modules in the output
new webpack.optimize.DedupePlugin(),

// Reference: http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
// Minify all javascript, switch loaders to minimizing mode
new webpack.optimize.UglifyJsPlugin({
mangle: false,
output: {
comments: false
},
compress: {
warnings: false
}
})
);
}

let localEnv;
try {
localEnv = require('./server/config/local.env').default;
Expand Down

0 comments on commit f1d3a7c

Please sign in to comment.