webpack 2 is now stable (#8859)

Remove notice about different webpack versions
Update webpack URLs
(cherry picked from commit c2f94385a1)
This commit is contained in:
Oscar Bolmsten
2017-02-02 13:25:20 +00:00
committed by Dan Abramov
parent 80b8d5adac
commit 5e06732b2f
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ To install React with npm, run:
npm install --save react@15.4.0 react-dom@15.4.0
```
We recommend using a bundler like [webpack](https://webpack.github.io/) or [Browserify](http://browserify.org/) so you can write modular code and bundle it together into small packages to optimize load time.
We recommend using a bundler like [webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) so you can write modular code and bundle it together into small packages to optimize load time.
Remember that by default, React runs extra checks and provides helpful warnings in development mode. When deploying your app, make sure to [compile it in production mode](/react/docs/installation.html#development-and-production-versions).
-4
View File
@@ -103,10 +103,6 @@ If you use [Create React App](https://github.com/facebookincubator/create-react-
Include both `DefinePlugin` and `UglifyJsPlugin` into your production Webpack configuration as described in [this guide](https://webpack.js.org/guides/production-build/).
> **Note:**
>
>This guide works with Webpack 1.x and 2, but is hosted on the new Webpack 2 site. If you're not using the Webpack 2 beta, refer to the [Webpack 1.x website](https://webpack.github.io/) for all other documentation.
#### Browserify
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.