@samitouri / QOS-React / commits / 10eaf26809

FIX: Move CRA build info under it's tab page (#9452)

* FIX: Move CRA build info under it's tab page * Add some links

Filip Hoško committed Apr 18, 2017 at 19:17 UTC 10eaf26809bdb1874e14f0879190c356937c2e3e
1 file changed +3 -5
docs/docs/installation.md
+3 -5
@@ -90,6 +90,8 @@ npm start
90
91 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.
92
93 +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).
94 +
95 <block class="existingapp" />
96
97 ## 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
164
165 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.
166
165 -#### Create React App
166 -
167 -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.
168 -
167 #### Rollup
168
169 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() {
256 }
257 }
258 }
261 -</script>
\ No newline at end of file
259 +</script>