Point all Webpack links to 1.x documentation#8697
Conversation
| #### Webpack | ||
|
|
||
| Include both `DefinePlugin` and `UglifyJsPlugin` into your production Webpack configuration as described in [this guide](https://webpack.js.org/guides/production-build/). | ||
| Include both [`DefinePlugin`](https://webpack.github.io/docs/list-of-plugins.html#defineplugin) and [`UglifyJsPlugin`](https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin) into your production Webpack configuration. |
There was a problem hiding this comment.
I couldn't find an equivalent guide on production builds on the 1.x site, so I just linked to the docs for each plugin instead.
There was a problem hiding this comment.
In this particular case I'd rather link to 2.x doc because it contains specific actionable advice, and works identically in 1.x.
There was a problem hiding this comment.
My only worry with that is users clicking to the other linked doc pages from that tutorial and not really realizing they're potentially getting bad information.
We could mention that this article is on the Webpack 2 doc site after linking to it? Something like:
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 for all other documentation.
Otherwise, I can just revert it back 👍
There was a problem hiding this comment.
This sentence looks fine to me.
Per #8650 (comment)