-
Notifications
You must be signed in to change notification settings - Fork 0
Set process.env.NODE_ENV = 'production'
when bundling
#78
Comments
Is there other ways to tell react to provide prod version than using vue.js will btw have the same issue. |
Docs says to use process.env.NODE_ENV https://facebook.github.io/react/docs/optimizing-performance.html#use-the-production-build |
I think it makes sense to inject NODE_ENV from the server process.env. |
Sorta related: we don't do minification |
@digitalsadhu this is done now, right? |
Minification based on NODE_ENV=production yes. |
ah, of course. |
We now support minification. Defaults to process.env.NODE_ENV with fallback to 'development' if not defined. Latest client also allows overriding this on any given client call. |
Wonder what’s up here. And I’ve seen this work with react. |
Yep, I went digging and couldn't find anything obvious. Will have to continue looking into it tomorrow. |
Currently we get the development version of e.g. react in production. Would be nice to avoid that
The text was updated successfully, but these errors were encountered: