Skip to content

Commit

Permalink
feat(webpack): Upgrade to webpack 3 (#20)
Browse files Browse the repository at this point in the history
Add ModuleConcatenationPlugin to production builds
  • Loading branch information
mattcompiles committed Jul 5, 2017
1 parent f916cd2 commit ee95ae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ const buildWebpackConfigs = builds.map(({ name, paths, env }) => {
new webpack.optimize.UglifyJsPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
})
}),
new webpack.optimize.ModuleConcatenationPlugin()
]
)
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
"style-loader": "^0.13.1",
"svgo-loader": "^1.1.2",
"url-loader": "^0.5.8",
"webpack": "^2.2.1",
"webpack-dev-server": "^2.3.0"
"webpack": "^3.0.0",
"webpack-dev-server": "^2.5.0"
},
"devDependencies": {
"commitizen": "^2.9.6",
Expand Down

0 comments on commit ee95ae9

Please sign in to comment.