Skip to content

Commit

Permalink
Hardcode process.env.NODE_ENV in Webpack config so it doesn't pull …
Browse files Browse the repository at this point in the history
…in process shim.

Note that our code doesn't really care about the value of this, it's just because React's `invariant` module is being pulled in.
  • Loading branch information
Daniel15 committed Sep 6, 2015
1 parent 79fac01 commit 36e5792
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ gulp.task('build-htmltojsx', function() {
plugins: [
new webpack.DefinePlugin({
IN_BROWSER: true,
'process.env.NODE_ENV': '"production"'
}),
],
}))
Expand All @@ -59,6 +60,7 @@ gulp.task('build-magic', function() {
plugins: [
new webpack.DefinePlugin({
IN_BROWSER: true,
'process.env.NODE_ENV': '"production"'
}),
],
}))
Expand Down

0 comments on commit 36e5792

Please sign in to comment.