Added Brunch build tool to the docs (#9074)
* Added Brunch build tool to the docs * Improved grammar * product build -> production build
Dima Beznos committed
Mar 4, 2017 at 00:15 UTC
0bedd0697aaf748902ac8c9d57d9ecb8b93c91f9
2 files changed
+5
docs/docs/installation.md
+4
@@ -99,6 +99,10 @@ By default, React includes many helpful warnings. These warnings are very useful
99
100
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.
101
102
+#### Brunch
103
+
104
+To create an optimized production build with Brunch, just add the `-p` flag to the build command. See the [Brunch docs](http://brunch.io/docs/commands) for more details.
105
+
106
#### Webpack
107
108
Include both `DefinePlugin` and `UglifyJsPlugin` into your production Webpack configuration as described in [this guide](https://webpack.js.org/guides/production-build/).
docs/docs/optimizing-performance.md
+1
@@ -13,6 +13,7 @@ If you're benchmarking or experiencing performance problems in your React apps,
13
14
* For Create React App, you need to run `npm run build` and follow the instructions.
15
* For single-file builds, we offer production-ready `.min.js` versions.
16
+* For Brunch, you need to add the `-p` flag to the `build` command.
17
* For Browserify, you need to run it with `NODE_ENV=production`.
18
* For Webpack, you need to add this to plugins in your production config:
19