From 49f9a58b2354a16bf58350021064eb86b21cf8df Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Sat, 5 Jul 2014 20:50:00 -0400 Subject: [PATCH] Add a note about production mode for npm installs. --- downloads.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/downloads.md b/downloads.md index 0888d99f..769c6b6e 100644 --- a/downloads.md +++ b/downloads.md @@ -76,6 +76,8 @@ React.renderComponent(...); If you'd like to use any [add-ons](/react/docs/addons.html), use `var React = require('react/addons');` instead. +**Note:** by default, React will be in development mode. To use React in production mode, set the environment variable `NODE_ENV` to `production`. For use in node, this is sufficient; if you are using browserify, the [envify](https://github.com/hughsk/envify) transform is needed to make use of environment variables. A minifier that performs dead-code elimination such as [UglifyJS](https://github.com/mishoo/UglifyJS2) is recommended to completely remove the extra code present in development mode. + ## Bower ```sh