Skip to content

Commit 4c6853e

Browse files
docs(links) update the links to have trailing slash in order for anchors to work consistently (#3332)
1 parent b7a5818 commit 4c6853e

18 files changed

+27
-27
lines changed

src/content/api/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ In every other case, webpack prints out a set of stats showing bundle, chunk and
127127

128128
### Environment Options
129129

130-
When the webpack configuration [exports a function](/configuration/configuration-types#exporting-a-function), an "environment" may be passed to it.
130+
When the webpack configuration [exports a function](/configuration/configuration-types/#exporting-a-function), an "environment" may be passed to it.
131131

132132
```bash
133133
webpack --env.production # sets env.production == true

src/content/concepts/output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This configuration would output a single `bundle.js` file into the `dist` direct
3131

3232
## Multiple Entry Points
3333

34-
If your configuration creates more than a single "chunk" (as with multiple entry points or when using plugins like CommonsChunkPlugin), you should use [substitutions](/configuration/output#outputfilename) to ensure that each file has a unique name.
34+
If your configuration creates more than a single "chunk" (as with multiple entry points or when using plugins like CommonsChunkPlugin), you should use [substitutions](/configuration/output/#outputfilename) to ensure that each file has a unique name.
3535

3636
```javascript
3737
module.exports = {

src/content/configuration/configuration-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Eventually you will find the need to disambiguate in your `webpack.config.js` be
2222

2323
One option is to export a function from your webpack config instead of exporting an object. The function will be invoked with two arguments:
2424

25-
- An environment as the first parameter. See the [environment options CLI documentation](/api/cli#environment-options) for syntax examples.
25+
- An environment as the first parameter. See the [environment options CLI documentation](/api/cli/#environment-options) for syntax examples.
2626
- An options map (`argv`) as the second parameter. This describes the options passed to webpack, with keys such as [`output-filename`](/api/cli/#output-options) and [`optimize-minimize`](/api/cli/#optimize-options).
2727

2828
```diff
@@ -65,7 +65,7 @@ module.exports = () => {
6565

6666
## Exporting multiple configurations
6767

68-
Instead of exporting a single configuration object/function, you may export multiple configurations (multiple functions are supported since webpack 3.1.0). When running webpack, all configurations are built. For instance, this is useful for [bundling a library](/guides/author-libraries) for multiple [targets](/configuration/output#outputlibrarytarget) such as AMD and CommonJS:
68+
Instead of exporting a single configuration object/function, you may export multiple configurations (multiple functions are supported since webpack 3.1.0). When running webpack, all configurations are built. For instance, this is useful for [bundling a library](/guides/author-libraries) for multiple [targets](/configuration/output/#outputlibrarytarget) such as AMD and CommonJS:
6969

7070
```js
7171
module.exports = [{

src/content/configuration/devtool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Some of these values are suited for development and some for production. For dev
5050

5151
W> There are some issues with Source Maps in Chrome. [We need your help!](https://github.com/webpack/webpack/issues/3165).
5252

53-
T> See [`output.sourceMapFilename`](/configuration/output#outputsourcemapfilename) to customize the filenames of generated Source Maps.
53+
T> See [`output.sourceMapFilename`](/configuration/output/#outputsourcemapfilename) to customize the filenames of generated Source Maps.
5454

5555

5656
### Qualities

src/content/configuration/entry-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ module.exports = {
9292
};
9393
```
9494

95-
When combining with the [`output.library`](/configuration/output#outputlibrary) option: If an array is passed only the last item is exported.
95+
When combining with the [`output.library`](/configuration/output/#outputlibrary) option: If an array is passed only the last item is exported.

src/content/configuration/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = {
5959
mode: "none", // no defaults
6060
</mode>
6161
// Chosen mode tells webpack to use its built-in optimizations accordingly.
62-
<entry "/configuration/entry-context#entry">
62+
<entry "/configuration/entry-context/#entry">
6363
<default>
6464
entry: "./app/entry", // string | object | array
6565
</default>
@@ -81,7 +81,7 @@ module.exports = {
8181
path: path.resolve(__dirname, "dist"), // string
8282
// the target directory for all output files
8383
// must be an absolute path (use the Node.js path module)
84-
<filename "/configuration/output#outputfilename">
84+
<filename "/configuration/output/#outputfilename">
8585
<default>
8686
filename: "bundle.js", // string
8787
</default>
@@ -256,7 +256,7 @@ module.exports = {
256256
// alias "module" -> "./app/third/module.js" and "module/file" results in error
257257
// modules aliases are imported relative to the current context
258258
},
259-
<alias "/configuration/resolve#resolvealias">
259+
<alias "/configuration/resolve/#resolvealias">
260260
<default>
261261
/* Alternative alias syntax (click to show) */
262262
</default>
@@ -306,7 +306,7 @@ module.exports = {
306306
</advancedResolve>
307307
},
308308
performance: {
309-
<hints "/configuration/performance#performance-hints">
309+
<hints "/configuration/performance/#performance-hints">
310310
<default>
311311
hints: "warning", // enum
312312
</default>

src/content/configuration/module.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ module.exports = {
515515

516516
__`object`__
517517

518-
It must have a `loader` property being a string. It is resolved relative to the configuration [`context`](/configuration/entry-context#context) with the loader resolving options ([resolveLoader](/configuration/resolve#resolveloader)).
518+
It must have a `loader` property being a string. It is resolved relative to the configuration [`context`](/configuration/entry-context/#context) with the loader resolving options ([resolveLoader](/configuration/resolve/#resolveloader)).
519519

520520
It can have an `options` property being a string or object. This value is passed to the loader, which should interpret it as loader options.
521521

src/content/configuration/other-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ This will force webpack to exit its bundling process.
6868

6969
`boolean` `object`
7070

71-
Cache the generated webpack modules and chunks to improve build speed. Caching will be automatically enabled by default while in [watch mode](/configuration/watch#watch) and webpack is set to mode [`development`](/configuration/mode#mode-development). To enable caching manually set it to `true`:
71+
Cache the generated webpack modules and chunks to improve build speed. Caching will be automatically enabled by default while in [watch mode](/configuration/watch/#watch) and webpack is set to mode [`development`](/configuration/mode/#mode-development). To enable caching manually set it to `true`:
7272

7373
__webpack.config.js__
7474

src/content/contribute/debugging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ related:
1717

1818
When contributing to the core repo, writing a loader/plugin, or even just working on a complex project, debugging tools can be central to your workflow. Whether the problem is slow performance on a large project or an unhelpful traceback, the following utilities can make figuring it out less painful.
1919

20-
- The [`stats` data](/api/stats) made available through [Node](/api/node#stats-object) and the [CLI](/api/cli#common-options).
20+
- The [`stats` data](/api/stats) made available through [Node](/api/node/#stats-object) and the [CLI](/api/cli/#common-options).
2121
- Chrome __DevTools__ via `node-nightly` and the latest Node.js versions.
2222

2323

@@ -32,7 +32,7 @@ Whether you want to sift through [this data](/api/stats) manually or use a tool
3232
- The relationships between modules.
3333
- And much more...
3434

35-
On top of that, the official [analyze tool](https://github.com/webpack/analyse) and [various others](/guides/code-splitting#bundle-analysis) will accept this data and visualize it in various ways.
35+
On top of that, the official [analyze tool](https://github.com/webpack/analyse) and [various others](/guides/code-splitting/#bundle-analysis) will accept this data and visualize it in various ways.
3636

3737

3838
## DevTools

src/content/guides/asset-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ The coolest part of everything mentioned above is that loading assets this way a
506506

507507
This setup makes your code a lot more portable as everything that is closely coupled now lives together. Let's say you want to use `/my-component` in another project, simply copy or move it into the `/components` directory over there. As long as you've installed any _external dependencies_ and your _configuration has the same loaders_ defined, you should be good to go.
508508

509-
However, let's say you're locked into your old ways or you have some assets that are shared between multiple components (views, templates, modules, etc.). It's still possible to store these assets in a base directory and even use [aliasing](/configuration/resolve#resolvealias) to make them easier to `import`.
509+
However, let's say you're locked into your old ways or you have some assets that are shared between multiple components (views, templates, modules, etc.). It's still possible to store these assets in a base directory and even use [aliasing](/configuration/resolve/#resolvealias) to make them easier to `import`.
510510

511511

512512
## Wrapping up

0 commit comments

Comments
 (0)