Skip to content

Commit

Permalink
fix(webpack): only enable dedupe in production
Browse files Browse the repository at this point in the history
Closes #46
  • Loading branch information
dignifiedquire committed Aug 9, 2016
1 parent 8f68414 commit 050ba21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ const shared = {
},
timeout: 80000,
plugins: [
new webpack.DefinePlugin({'fs.writeSync': false}),
new webpack.optimize.DedupePlugin()
new webpack.DefinePlugin({'fs.writeSync': false})
]
}

Expand Down
3 changes: 3 additions & 0 deletions tasks/build/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ module.exports = {
c.output.path = path.resolve('dist')
c.devtool = 'source-map'
c.debug = false
c.plugins.push(
new webpack.optimize.DedupePlugin()
)

webpack(c, webpackDone(() => {
gulp.src('dist/index.js')
Expand Down

0 comments on commit 050ba21

Please sign in to comment.