Skip to content

Commit f1d3a7c

Browse files
committed
fix(webpack): remove old plugins
removed in v4
1 parent fc7aef6 commit f1d3a7c

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Diff for: templates/app/webpack.make.js

-25
Original file line numberDiff line numberDiff line change
@@ -341,31 +341,6 @@ module.exports = function makeWebpackConfig(options) {
341341
);
342342
}
343343

344-
// Add build specific plugins
345-
if(BUILD) {
346-
config.plugins.push(
347-
// Reference: http://webpack.github.io/docs/list-of-plugins.html#noerrorsplugin
348-
// Only emit files when there are no errors
349-
new webpack.NoErrorsPlugin(),
350-
351-
// Reference: http://webpack.github.io/docs/list-of-plugins.html#dedupeplugin
352-
// Dedupe modules in the output
353-
new webpack.optimize.DedupePlugin(),
354-
355-
// Reference: http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
356-
// Minify all javascript, switch loaders to minimizing mode
357-
new webpack.optimize.UglifyJsPlugin({
358-
mangle: false,
359-
output: {
360-
comments: false
361-
},
362-
compress: {
363-
warnings: false
364-
}
365-
})
366-
);
367-
}
368-
369344
let localEnv;
370345
try {
371346
localEnv = require('./server/config/local.env').default;

0 commit comments

Comments
 (0)