From 07c51f276045f7ec49f3abfbbd56a169ac33a177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Ho=C5=A1ko?= Date: Tue, 18 Apr 2017 19:17:28 +0200 Subject: [PATCH] FIX: Move CRA build info under it's tab page (#9452) * FIX: Move CRA build info under it's tab page * Add some links --- docs/installation.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 3072d776..6687a961 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -90,6 +90,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](https://github.com/facebookincubator/create-react-app#create-react-app-) and the [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#table-of-contents). + ## Adding React to an Existing Application @@ -162,10 +164,6 @@ To create an optimized production build with Brunch, just add the `-p` flag to t Run Browserify with `NODE_ENV` environment variable set to `production` and use [UglifyJS](https://github.com/mishoo/UglifyJS) as the last build step so that development-only code gets stripped out. -#### Create React App - -If you use [Create React App](https://github.com/facebookincubator/create-react-app), `npm run build` will create an optimized build of your app in the `build` folder. - #### Rollup Use [rollup-plugin-replace](https://github.com/rollup/rollup-plugin-replace) plugin together with [rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs) (in that order) to remove development-only code. [See this gist](https://gist.github.com/Rich-Harris/cb14f4bc0670c47d00d191565be36bf0) for a complete setup example. @@ -258,4 +256,4 @@ function selectTabForHashLink() { } } } - \ No newline at end of file +