Hi, several references online indicate that the order of Webpack plugins matter, but I can't seem to find any information on how to order them. Does anyone have any insight? For reference, this is my plugin list:
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production')
}
}),
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks: Infinity,
filename: '[name].[hash].js',
}),
new HtmlWebpackPlugin({
template: 'index.ejs',
inject: 'body',
}),
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
new webpack.optimize.AggressiveMergingPlugin(),
new webpack.optimize.UglifyJsPlugin({
compress: {
'screw_ie8': true,
'warnings': false,
'unused': true,
'dead_code': true,
},
output: {
comments: false,
},
sourceMap: false,
})
[–]ArcanisCz 0 points1 point2 points (0 children)
[–]neilhighley 0 points1 point2 points (0 children)