From 59b0cd40f735460465d090e59ebd0d2e0a1c260c Mon Sep 17 00:00:00 2001 From: Dima Beznos Date: Sat, 4 Mar 2017 00:15:25 +0200 Subject: [PATCH] Added Brunch build tool to the docs (#9074) * Added Brunch build tool to the docs * Improved grammar * product build -> production build --- docs/installation.md | 4 ++++ docs/optimizing-performance.md | 1 + 2 files changed, 5 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 0039fc77..15da2f4d 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -99,6 +99,10 @@ By default, React includes many helpful warnings. These warnings are very useful 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. +#### Brunch + +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. + #### Webpack Include both `DefinePlugin` and `UglifyJsPlugin` into your production Webpack configuration as described in [this guide](https://webpack.js.org/guides/production-build/). diff --git a/docs/optimizing-performance.md b/docs/optimizing-performance.md index fe1d9307..86acb8cd 100644 --- a/docs/optimizing-performance.md +++ b/docs/optimizing-performance.md @@ -13,6 +13,7 @@ If you're benchmarking or experiencing performance problems in your React apps, * For Create React App, you need to run `npm run build` and follow the instructions. * For single-file builds, we offer production-ready `.min.js` versions. +* For Brunch, you need to add the `-p` flag to the `build` command. * For Browserify, you need to run it with `NODE_ENV=production`. * For Webpack, you need to add this to plugins in your production config: