Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

use DefinePlugin to inject NODE_ENV into webpack build #16

Merged
merged 1 commit into from
Dec 31, 2015

Conversation

conorhastings
Copy link
Contributor

see reduxjs/redux#1029 . If you do not inject NODE_ENV, production build will use dev versions of react/redux/potentially other libs , using DefinePlugin means when you buld with NODE_ENV=production you will remove slow code paths (such as those that do propType validation)

tj added a commit that referenced this pull request Dec 31, 2015
use DefinePlugin to inject NODE_ENV into webpack build
@tj tj merged commit 3ff4f2a into tj:master Dec 31, 2015
@tj
Copy link
Owner

tj commented Dec 31, 2015

thankya!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants