From a3b3125c5ca0258cc68b68bfe85ebcfe0736cc7c Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 18 Apr 2017 18:20:18 +0100 Subject: [PATCH] Rebuild website --- docs/installation.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/installation.html b/docs/installation.html index dbd292ef1a..0f10b5fd42 100644 --- a/docs/installation.html +++ b/docs/installation.html @@ -154,6 +154,8 @@ npm start

Create React App doesn't handle backend logic or databases; it just creates a frontend build pipeline, so you can use it with any backend you want. It uses build tools like Babel and webpack under the hood, but works with zero configuration.

+

When you're ready to deploy to production, running npm run build will create an optimized build of your app in the build folder. You can learn more about Create React App from its README and the User Guide.

+

Adding React to an Existing Application

@@ -219,10 +221,6 @@ npm install --save react react-dom

Run Browserify with NODE_ENV environment variable set to production and use UglifyJS as the last build step so that development-only code gets stripped out.

-

Create React App

- -

If you use Create React App, npm run build will create an optimized build of your app in the build folder.

-

Rollup

Use rollup-plugin-replace plugin together with rollup-plugin-commonjs (in that order) to remove development-only code. See this gist for a complete setup example.