Skip to content

Commit

Permalink
Set up CommonsChunkPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
lyyourc committed May 3, 2017
1 parent 6324e8a commit 4af7b5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ if (process.env.NODE_ENV === 'production') {
module.exports.plugins = (module.exports.plugins || []).concat([
new BundleAnalyzerPlugin(),

new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
}),

new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
Expand Down

0 comments on commit 4af7b5b

Please sign in to comment.