I ran this command:
browserify src.js -t [ babelify --presets [ react ] ] > build.js
and I get one file that can be used by its own. Works great, but NODE_ENV is set up for development, and I get console.log about downloading React DevTools.
How do I set it up for production? I walked around and found nothing that would work for me. I tried to think, but no luck (I am very new to JS builds).
I tried putting the -NODE_ENV version somewhere in the line above, but I am very new to the browser and babelify, so I basically make a trial version and error.
source
share