Skip to content

Commit

Permalink
馃殌 use webpack.optimize.ModuleConcatenationPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkvasnicak committed Jun 20, 2017
1 parent 0de0108 commit 36bf831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spust",
"version": "0.13.0-0",
"version": "0.13.0-1",
"description": "Quickly bootstrap universal javascript applications.",
"keywords": [
"webpack",
Expand Down
5 changes: 5 additions & 0 deletions src/helpers/createWebpackPlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export default function createWebpackPlugins(
// watch missing node modules plugin, only dev, both sides
isDev ? new WatchMissingNodeModulesPlugin() : null,

// webpack 3.0's
!isDev && webpack.optimize.ModuleConcatenationPlugin
? webpack.optimize.ModuleConcatenationPlugin()
: null,

// make everything that is pointed from 2 and more places a chunk
!isDev && !isServer
? new webpack.optimize.CommonsChunkPlugin({
Expand Down

0 comments on commit 36bf831

Please sign in to comment.