Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix(webpack): Commons chunk plugin order
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Dec 5, 2017
1 parent be65935 commit 21d2e5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ module.exports = {
},
plugins: [
new CleanWebpackPlugin(['dist']),
new webpack.optimize.CommonsChunkPlugin({
name: 'manifest',
minChunks: Infinity
}),
new webpack.optimize.CommonsChunkPlugin({
name: 'app',
children: true
Expand All @@ -85,10 +89,6 @@ module.exports = {
return module.context && module.context.indexOf('node_modules') !== -1
}
}),
new webpack.optimize.CommonsChunkPlugin({
name: 'manifest',
minChunks: Infinity
}),
new HtmlWebpackPlugin({
template: path.resolve(demo + 'index.html'),
chunksSortMode: 'dependency'
Expand Down

0 comments on commit 21d2e5f

Please sign in to comment.