Skip to content

Commit dd890c6

Browse files
authored
Merge pull request #1978 from webpack/evaluate-redirects
Evaluate all http redirects of outgoing links
2 parents aaf55e0 + 33b91c4 commit dd890c6

23 files changed

+41
-41
lines changed

src/components/Footer/Footer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Footer = () => (
2525
<section className="footer__right">
2626
<Link className="footer__link" to="/glossary/">Glossary</Link>
2727
<Link className="footer__link" to="/branding/">Branding</Link>
28-
<Link className="footer__link" to="//gitter.im/webpack/webpack">Gitter</Link>
28+
<Link className="footer__link" to="https://gitter.im/webpack/webpack">Gitter</Link>
2929
<Link className="footer__link" to="https://github.com/webpack/webpack/releases">Changelog</Link>
3030
<Link className="footer__link footer__license" to="/license">
3131
<img

src/components/StarterKits/StarterKits.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const StarterKits = props => (
1818
The following table contains a curated list of starter kits that can
1919
be used as a jumping off point for webpack-based projects. To add a new
2020
kit to the list please visit{' '}
21-
<Link to="https://github.com/ahfarmer/tool-list">this repository</Link>{' '}
21+
<Link to="https://github.com/ahfarmer/javascriptstuff-db">this repository</Link>{' '}
2222
and submit a PR against this file:
2323
<code>generator/starterProjectUrls.js</code>.
2424
</p>

src/content/api/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ webpack --json
116116
webpack --json > stats.json
117117
```
118118

119-
In every other case, webpack prints out a set of stats showing bundle, chunk and timing details. Using this option the output can be a JSON object. This response is accepted by webpack's [analyse tool](https://webpack.github.com/analyse), or chrisbateman's [webpack-visualizer](https://chrisbateman.github.io/webpack-visualizer/), or th0r's [webpack-bundle-analyzer](https://github.com/th0r/webpack-bundle-analyzer). The analyse tool will take in the JSON and provide all the details of the build in graphical form.
119+
In every other case, webpack prints out a set of stats showing bundle, chunk and timing details. Using this option the output can be a JSON object. This response is accepted by webpack's [analyse tool](https://webpack.github.io/analyse/), or chrisbateman's [webpack-visualizer](https://chrisbateman.github.io/webpack-visualizer/), or th0r's [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer). The analyse tool will take in the JSON and provide all the details of the build in graphical form.
120120

121121
### Environment Options
122122

src/content/api/loaders.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ addDependency(file: string)
355355
dependency(file: string) // shortcut
356356
```
357357

358-
Adds a file as dependency of the loader result in order to make them watchable. For example, [`html-loader`](https://github.com/webpack/html-loader) uses this technique as it finds `src` and `src-set` attributes. Then, it sets the url's for those attributes as dependencies of the html file that is parsed.
358+
Adds a file as dependency of the loader result in order to make them watchable. For example, [`html-loader`](https://github.com/webpack-contrib/html-loader) uses this technique as it finds `src` and `src-set` attributes. Then, it sets the url's for those attributes as dependencies of the html file that is parsed.
359359

360360

361361
### `this.addContextDependency`

src/content/api/module-variables.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ exports.aFunction = function doSomething() {
6666

6767
### `global` (NodeJS)
6868

69-
See [node.js global](http://nodejs.org/api/globals.html#globals_global).
69+
See [node.js global](https://nodejs.org/api/globals.html#globals_global).
7070

7171

7272
### `process` (NodeJS)
7373

74-
See [node.js process](http://nodejs.org/api/process.html).
74+
See [node.js process](https://nodejs.org/api/process.html).
7575

7676

7777
### `__dirname` (NodeJS)
@@ -80,7 +80,7 @@ Depending on the config option `node.__dirname`:
8080

8181
* `false`: Not defined
8282
* `mock`: equal "/"
83-
* `true`: [node.js __dirname](http://nodejs.org/api/globals.html#globals_dirname)
83+
* `true`: [node.js __dirname](https://nodejs.org/api/globals.html#globals_dirname)
8484

8585
If used inside a expression that is parsed by the Parser, the config option is treated as `true`.
8686

@@ -91,7 +91,7 @@ Depending on the config option `node.__filename`:
9191

9292
* `false`: Not defined
9393
* `mock`: equal "/index.js"
94-
* `true`: [node.js __filename](http://nodejs.org/api/globals.html#globals_filename)
94+
* `true`: [node.js __filename](https://nodejs.org/api/globals.html#globals_filename)
9595

9696
If used inside a expression that is parsed by the Parser, the config option is treated as `true`.
9797

src/content/branding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ T> For those of you following our guidelines and have gotten this far, we've mad
6363

6464
## Font
6565

66-
We use the beautiful [Geomanist Medium](http://geomanist.com/) font from the extremely talented folks at the [Atipo Foundry](http://atipofoundry.com/) who provide the entire font family at a 'pay what you want' model.
66+
We use the beautiful [Geomanist Medium](http://atipofoundry.com/fonts/geomanist) font from the extremely talented folks at the [Atipo Foundry](http://atipofoundry.com/) who provide the entire font family at a 'pay what you want' model.
6767

6868

6969
## Color Palette
7070

71-
The following colors are used throughout the site in various combinations and on our fancy clothing line launched with the help of [Open Collective](http://opencollective.com) and [Threadless](https://medium.com/u/840563ee2a56) over at the [official webpack store](https://webpack.threadless.com/collections/the-final-release-collection/)!
71+
The following colors are used throughout the site in various combinations and on our fancy clothing line launched with the help of [Open Collective](https://opencollective.com/) and [Threadless](https://medium.com/u/840563ee2a56) over at the [official webpack store](https://webpack.threadless.com/collections/the-final-release-collection/)!
7272

7373
| Color Name | HEX Code | RGB Code | Sample
7474
|---------------|---------------|-----------------------|-------------------------------

src/content/comparison.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ webpack is not the only module bundler out there. If you are choosing between us
4141
| Node.js built-in libs `require("path")` | **yes** | no | **yes** | **yes** | [node-resolve-plugin](https://github.com/rollup/rollup-plugin-node-resolve) | |
4242
| Other Node.js stuff | process, __dir/filename, global | - | process, __dir/filename, global | process, __dir/filename, global for cjs | global ([commonjs-plugin](https://github.com/rollup/rollup-plugin-commonjs)) | |
4343
| Plugins | **yes** | yes | **yes** | yes | yes | yes |
44-
| Preprocessing | **loaders, [transforms](https://github.com/webpack/transform-loader)** | loaders | transforms | plugin translate | plugin transforms | compilers, optimizers |
44+
| Preprocessing | **loaders, [transforms](https://github.com/webpack-contrib/transform-loader)** | loaders | transforms | plugin translate | plugin transforms | compilers, optimizers |
4545
| Replacement for browser | `web_modules`, `.web.js`, package.json field, alias config option | alias option | package.json field, alias option | package.json, alias option | no | |
4646
| Requirable files | file system | **web** | file system | through plugins | file system or through plugins | file system |
4747
| Runtime overhead | **243B + 20B per module + 4B per dependency** | 14.7kB + 0B per module + (3B + X) per dependency | 415B + 25B per module + (6B + 2X) per dependency | 5.5kB for self-executing bundles, 38kB for full loader and polyfill, 0 plain modules, 293B CJS, 139B ES2015 System.register before gzip | **none for ES2015 modules** (other formats may have) | |
48-
| Watch mode | yes | not required | [watchify](https://github.com/substack/watchify) | not needed in dev | [rollup-watch](https://github.com/rollup/rollup-watch) | yes |
48+
| Watch mode | yes | not required | [watchify](https://github.com/browserify/watchify) | not needed in dev | [rollup-watch](https://github.com/rollup/rollup-watch) | yes |
4949

5050

5151
♦ in production mode (opposite in development mode)

src/content/concepts/hot-module-replacement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The compiler ensures that module IDs and chunk IDs are consistent between these
4646

4747
### In a Module
4848

49-
HMR is an opt-in feature that only affects modules containing HMR code. One example would be patching styling through the [`style-loader`](https://github.com/webpack/style-loader). In order for patching to work, the `style-loader` implements the HMR interface; when it receives an update through HMR, it replaces the old styles with the new ones.
49+
HMR is an opt-in feature that only affects modules containing HMR code. One example would be patching styling through the [`style-loader`](https://github.com/webpack-contrib/style-loader). In order for patching to work, the `style-loader` implements the HMR interface; when it receives an update through HMR, it replaces the old styles with the new ones.
5050

5151
Similarly, when implementing the HMR interface in a module, you can describe what should happen when the module is updated. However, in most cases, it's not mandatory to write HMR code in every module. If a module has no HMR handlers, the update bubbles up. This means that a single handler can update a complete module tree. If a single module from the tree is updated, the entire set of dependencies is reloaded.
5252

src/content/configuration/devtool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ contributors:
88
- lricoy
99
related:
1010
- title: Enabling Sourcemaps
11-
url: http://survivejs.com/webpack/developing-with-webpack/enabling-sourcemaps/
11+
url: https://survivejs.com/webpack/developing-with-webpack/enabling-sourcemaps/
1212
- title: Webpack's Devtool Source Map
1313
url: http://cheng.logdown.com/posts/2016/03/25/679045
1414
---

src/content/configuration/output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ publicPath: "../assets/", // relative to HTML page
680680
publicPath: "", // relative to HTML page (same directory)
681681
```
682682

683-
In cases where the `publicPath` of output files can't be known at compile time, it can be left blank and set dynamically at runtime in the entry file using the [free variable](http://stackoverflow.com/questions/12934929/what-are-free-variables) `__webpack_public_path__`.
683+
In cases where the `publicPath` of output files can't be known at compile time, it can be left blank and set dynamically at runtime in the entry file using the [free variable](https://stackoverflow.com/questions/12934929/what-are-free-variables) `__webpack_public_path__`.
684684

685685
``` js
686686
__webpack_public_path__ = myRuntimePublicPath

src/content/configuration/target.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Option | Description
2828
`async-node` | Compile for usage in a Node.js-like environment (uses `fs` and `vm` to load chunks asynchronously)
2929
~~`atom`~~ | Alias for `electron-main`
3030
~~`electron`~~ | Alias for `electron-main`
31-
`electron-main` | Compile for [Electron](http://electron.atom.io/) for main process.
32-
`electron-renderer` | Compile for [Electron](http://electron.atom.io/) for renderer process, providing a target using `JsonpTemplatePlugin`, `FunctionModulePlugin` for browser environments and `NodeTargetPlugin` and `ExternalsPlugin` for CommonJS and Electron built-in modules.
31+
`electron-main` | Compile for [Electron](https://electronjs.org/) for main process.
32+
`electron-renderer` | Compile for [Electron](https://electronjs.org/) for renderer process, providing a target using `JsonpTemplatePlugin`, `FunctionModulePlugin` for browser environments and `NodeTargetPlugin` and `ExternalsPlugin` for CommonJS and Electron built-in modules.
3333
`node` | Compile for usage in a Node.js-like environment (uses Node.js `require` to load chunks)
3434
`node-webkit` | Compile for usage in WebKit and uses JSONP for chunk loading. Allows importing of built-in Node.js modules and [`nw.gui`](http://docs.nwjs.io/en/latest/) (experimental)
3535
`web` | Compile for usage in a browser-like environment **(default)**

src/content/configuration/watch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ For some systems, watching many file systems can result in a lot of CPU or memor
5757
ignored: /node_modules/
5858
```
5959

60-
It is also possible to use [anymatch](https://github.com/es128/anymatch) patterns:
60+
It is also possible to use [anymatch](https://github.com/micromatch/anymatch) patterns:
6161

6262
```js
6363
ignored: "files/**/*.js"
@@ -68,7 +68,7 @@ ignored: "files/**/*.js"
6868

6969
`boolean` `number`
7070

71-
Turn on [polling](http://whatis.techtarget.com/definition/polling) by passing `true`, or specifying a poll interval in milliseconds:
71+
Turn on [polling](https://whatis.techtarget.com/definition/polling) by passing `true`, or specifying a poll interval in milliseconds:
7272

7373
```js
7474
poll: 1000 // Check for changes every second

src/content/contribute/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ contributors:
99
- tbroadley
1010
---
1111

12-
The people who contribute to webpack do so for the love of open source, our users and ecosystem, and most importantly, pushing the web forward together. Because of our [Open Collective](http://opencollective.com/webpack) model for funding and transparency, we are able to funnel support and funds through contributors, dependent projects, and the contributor and core teams. To make a donation, simply click the button below...
12+
The people who contribute to webpack do so for the love of open source, our users and ecosystem, and most importantly, pushing the web forward together. Because of our [Open Collective](https://opencollective.com//webpack) model for funding and transparency, we are able to funnel support and funds through contributors, dependent projects, and the contributor and core teams. To make a donation, simply click the button below...
1313

1414
<div align="center">
1515
<a href="https://opencollective.com/webpack/donate" target="_blank">

src/content/guides/caching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ related:
1010
- title: Predictable Long Term Caching
1111
url: https://medium.com/webpack/predictable-long-term-caching-with-webpack-d3eee1d3fa31
1212
- title: Long Term Caching of Static Assets
13-
url: https://medium.com/@okonetchnikov/long-term-caching-of-static-assets-with-webpack-1ecb139adb95#.vtwnssps4
13+
url: https://codeburst.io/long-term-caching-of-static-assets-with-webpack-1ecb139adb95?gi=9e32667ae5c5#.vtwnssps4
1414
- title: Webpack & Caching
1515
url: https://gist.github.com/sokra/ff1b0290282bfa2c037bdb6dcca1a7aa
1616
- title: Advanced Webpack Presentation
@@ -23,7 +23,7 @@ related:
2323

2424
T> The examples in this guide stem from [getting started](/guides/getting-started), [output management](/guides/output-management) and [code splitting](/guides/code-splitting).
2525

26-
So we're using webpack to bundle our modular application which yields a deployable `/dist` directory. Once the contents of `/dist` have been deployed to a server, clients (typically browsers) will hit that server to grab the site and its assets. The last step can be time consuming, which is why browsers use a technique called [caching](http://searchstorage.techtarget.com/definition/cache). This allows sites to load faster with less unnecessary network traffic, however it can also cause headaches when you need new code to be picked up.
26+
So we're using webpack to bundle our modular application which yields a deployable `/dist` directory. Once the contents of `/dist` have been deployed to a server, clients (typically browsers) will hit that server to grab the site and its assets. The last step can be time consuming, which is why browsers use a technique called [caching](https://searchstorage.techtarget.com/definition/cache). This allows sites to load faster with less unnecessary network traffic, however it can also cause headaches when you need new code to be picked up.
2727

2828
This guide focuses on the configuration needed to ensure files produced by webpack compilation can remain cached unless their contents has changed.
2929

src/content/guides/code-splitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Once you start splitting your code, it can be useful to analyze the output to ch
300300

301301
- [webpack-chart](https://alexkuz.github.io/webpack-chart/): Interactive pie chart for webpack stats.
302302
- [webpack-visualizer](https://chrisbateman.github.io/webpack-visualizer/): Visualize and analyze your bundles to see which modules are taking up space and which might be duplicates.
303-
- [webpack-bundle-analyzer](https://github.com/th0r/webpack-bundle-analyzer): A plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap.
303+
- [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer): A plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap.
304304

305305

306306
## Next Steps

src/content/guides/hot-module-replacement.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ W> __HMR__ is not intended for use in production, meaning it should only be used
3333

3434
This feature is great for productivity. All we need to do is update our [webpack-dev-server](https://github.com/webpack/webpack-dev-server) configuration, and use webpack's built in HMR plugin. We'll also remove the entry point for `print.js` as it will now be consumed by the `index.js` module.
3535

36-
T> If you took the route of using `webpack-dev-middleware` instead of `webpack-dev-server`, please use the [`webpack-hot-middleware`](https://github.com/glenjamin/webpack-hot-middleware) package to enable HMR on your custom server or application.
36+
T> If you took the route of using `webpack-dev-middleware` instead of `webpack-dev-server`, please use the [`webpack-hot-middleware`](https://github.com/webpack-contrib/webpack-hot-middleware) package to enable HMR on your custom server or application.
3737

3838
__webpack.config.js__
3939

@@ -162,7 +162,7 @@ server.listen(5000, 'localhost', () => {
162162
});
163163
```
164164

165-
T> If you're [using `webpack-dev-middleware`](/guides/development#using-webpack-dev-middleware), check out the [`webpack-hot-middleware`](https://github.com/glenjamin/webpack-hot-middleware) package to enable HMR on your custom dev server.
165+
T> If you're [using `webpack-dev-middleware`](/guides/development#using-webpack-dev-middleware), check out the [`webpack-hot-middleware`](https://github.com/webpack-contrib/webpack-hot-middleware) package to enable HMR on your custom dev server.
166166

167167

168168
## Gotchas
@@ -340,6 +340,6 @@ There are many other loaders and examples out in the community to make HMR inter
340340
- [Vue Loader](https://github.com/vuejs/vue-loader): This loader supports HMR for vue components out of the box.
341341
- [Elm Hot Loader](https://github.com/fluxxu/elm-hot-loader): Supports HMR for the Elm programming language.
342342
- [Redux HMR](https://survivejs.com/webpack/appendices/hmr-with-react/#configuring-hmr-with-redux): No loader or plugin necessary! A simple change to your main store file is all that's required.
343-
- [Angular HMR](https://github.com/AngularClass/angular-hmr): No loader necessary! A simple change to your main NgModule file is all that's required to have full control over the HMR APIs.
343+
- [Angular HMR](https://github.com/gdi2290/angular-hmr): No loader necessary! A simple change to your main NgModule file is all that's required to have full control over the HMR APIs.
344344

345345
T> If you know of any other loaders or plugins that help with or enhance Hot Module Replacement please submit a pull request to add to this list!

src/content/guides/migrating.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ See [#2986](https://github.com/webpack/webpack/issues/2986) for the reason behin
144144
## `json-loader` is not required anymore
145145

146146
When no loader has been configured for a JSON file, webpack will automatically try to load the JSON
147-
file with the [`json-loader`](https://github.com/webpack/json-loader).
147+
file with the [`json-loader`](https://github.com/webpack-contrib/json-loader).
148148

149149
``` diff
150150
module: {
@@ -283,7 +283,7 @@ Thus make sure to remove the plugin from your configuration:
283283

284284
## `ExtractTextWebpackPlugin` - breaking change
285285

286-
[ExtractTextPlugin](https://github.com/webpack/extract-text-webpack-plugin) requires version 2 to work with webpack 2.
286+
[ExtractTextPlugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) requires version 2 to work with webpack 2.
287287

288288
`npm install --save-dev extract-text-webpack-plugin`
289289

0 commit comments

Comments
 (0)