Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with NODE_ENV=production in browser #1540

Closed
AntiCZ opened this issue Mar 24, 2016 · 2 comments
Closed

Problem with NODE_ENV=production in browser #1540

AntiCZ opened this issue Mar 24, 2016 · 2 comments

Comments

@AntiCZ
Copy link

AntiCZ commented Mar 24, 2016

Hello,
I dont know is this right place but I try.

My app is build from react-transform-boilerplate.git. For developing I use nodejs and webpack and all is ok. But for production I dont use Nodejs. App loads via classic script tag in html
<div id="app"></div><scipt src="js/react-app.js"></script>
like other frontends js libraries. I dont need index for Google and app is part of classic PHP web.

App works but in console I get message:

You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build.

I really dont know how to solve this. Is there some workaround?

@AntiCZ
Copy link
Author

AntiCZ commented Mar 24, 2016

Ok, so I am only stupid tj/frontend-boilerplate#16

@AntiCZ AntiCZ closed this as completed Mar 24, 2016
@gaearon
Copy link
Contributor

gaearon commented Mar 28, 2016

It's a common source of confusion, no worries! Envifying is important for React anyway so we just followed the convention most people were already using.

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

No branches or pull requests

2 participants