Skip to content

Commit

Permalink
Added Brunch build tool to the docs (#9074)
Browse files Browse the repository at this point in the history
* Added Brunch build tool to the docs

* Improved grammar

* product build -> production build
  • Loading branch information
beznosd authored and aweary committed Mar 3, 2017
1 parent ccde21c commit 0bedd06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down
1 change: 1 addition & 0 deletions docs/docs/optimizing-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 0bedd06

Please sign in to comment.