Skip to content

Commit e303957

Browse files
committed
[fix] Updating all how-to/** links to guides/**
1 parent edf7f1d commit e303957

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

content/concepts/entry-points.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const config = {
7373

7474
**What does this do?** At face value this tells webpack to create dependency graphs starting at both `app.js` and `vendors.js`. These graphs are completely separate and independent of each other (there will be a webpack bootstrap in each bundle). This is commonly seen with single page applications which have only one entry point (excluding vendors).
7575

76-
**Why?** This setup allows you to leverage `CommonsChunkPlugin` and extract any vendor references from your app bundle into your vendor bundle, replacing them with `__webpack_require__()` calls. If there is no vendor code in your application bundle, then you can achieve a common pattern in webpack known as [long-term vendor-caching](/how-to/cache).
76+
**Why?** This setup allows you to leverage `CommonsChunkPlugin` and extract any vendor references from your app bundle into your vendor bundle, replacing them with `__webpack_require__()` calls. If there is no vendor code in your application bundle, then you can achieve a common pattern in webpack known as [long-term vendor-caching](/guides/caching).
7777

7878
?> Consider removing this scenario in favor of the DllPlugin, which provides a better vendor-splitting.
7979

content/configuration/dev-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ contributors:
88
- charlespwd
99
---
1010

11-
webpack-dev-server can be used to quickly develop an application. See the ["How to Develop?"](/how-to/develop) to get started.
11+
webpack-dev-server can be used to quickly develop an application. See the ["How to Develop?"](/guides/development) to get started.
1212

1313
This page describes the options that effect the behavior of webpack-dev-server (short: dev-server).
1414

content/configuration/externals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ This syntax is used to describe all the possible ways that an external library c
9898

9999
?> TODO - I think its overkill to list externals as regex.
100100

101-
For more information on how to use this configuration, please refer to the article on [how to author a library](/how-to/author-libraries).
101+
For more information on how to use this configuration, please refer to the article on [how to author a library](/guides/author-libraries).

content/configuration/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ T> Notice that throughout the configuration we use Node's built-in [path module]
3737
3838
<details><summary>[filename](/configuration/output#output-filename): "bundle.js", // string</summary>
3939
[filename](/configuration/output#output-filename): "[name].js", // for multiple entry points
40-
[filename](/configuration/output#output-filename): "[chunkhash].js", // for [long term caching](/how-to/cache)
40+
[filename](/configuration/output#output-filename): "[chunkhash].js", // for [long term caching](/guides/caching)
4141
</details>
4242
// the filename template for entry chunks
4343
@@ -67,7 +67,7 @@ T> Notice that throughout the configuration we use Node's built-in [path module]
6767
// include useful path info about modules, exports, requests, etc. into the generated code
6868
6969
[chunkFilename](/configuration/output#output-chunkfilename): "[id].js",
70-
[chunkFilename](/configuration/output#output-chunkfilename): "[chunkhash].js", // for [long term caching](/how-to/cache)
70+
[chunkFilename](/configuration/output#output-chunkfilename): "[chunkhash].js", // for [long term caching](/guides/caching)
7171
// the filename template for additional chunks
7272
7373
[jsonpFunction](/configuration/output#output-jsonpfunction): "myWebpackJsonp", // string
@@ -142,7 +142,7 @@ T> Notice that throughout the configuration we use Node's built-in [path module]
142142
[loader](/configuration/module#rule-loader): "babel-loader",
143143
// the loader which should be applied, it'll be resolve relative to the context
144144
// -loader suffix is no longer optional in Webpack 2 for clarity reasons
145-
// see [webpack 1 upgrade guide](/how-to/upgrade-from-webpack-1)
145+
// see [webpack 1 upgrade guide](/guides/migrating)
146146
147147
[options](/configuration/module#rule-options-rule-query): {
148148
presets: ["es2015"]

content/configuration/output.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Using hashes based on each chunks' content:
132132
filename: "[chunkhash].bundle.js"
133133
```
134134

135-
Make sure the read the [Caching guide](/how-to/cache) for details. There are more steps involved than just setting this option.
135+
Make sure the read the [Caching guide](/guides/caching) for details. There are more steps involved than just setting this option.
136136

137137
The default value is `"[name].js"`.
138138

@@ -199,7 +199,7 @@ If using the [`output.library`](#output-library) option, the library name is aut
199199

200200
`string`
201201

202-
Read the [library guide](/how-to/author-libraries) for details.
202+
Read the [library guide](/guides/author-libraries) for details.
203203

204204
Use `library`, and `libraryTarget` below, when writing a JavaScript library that should export values, which can be used by other code depending on it. Pass a string with the name of the library:
205205

@@ -216,7 +216,7 @@ Note that `output.libraryTarget` defaults to `var`. This means if only `output.l
216216

217217
`string`
218218

219-
Read the [library guide](/how-to/author-libraries) for details.
219+
Read the [library guide](/guides/author-libraries) for details.
220220

221221
Configure how the library will be exposed. Any one of the following options can be used: (the examples assume `library: "MyLibrary"`)
222222

@@ -244,7 +244,7 @@ The output directory as an **absolute** path.
244244
path: path.resolve(__dirname, 'dist/assets')
245245
```
246246

247-
Note that `[hash]` in this parameter will be replaced with an hash of the compilation. See the [Caching guide](/how-to/cache) for details.
247+
Note that `[hash]` in this parameter will be replaced with an hash of the compilation. See the [Caching guide](/guides/caching) for details.
248248

249249

250250
## `output.pathinfo`
@@ -302,7 +302,7 @@ background-image: url(/assets/spinner.gif);
302302

303303
The webpack-dev-server also takes a hint from `publicPath`, using it to determine where to serve the output files from.
304304

305-
Note that `[hash]` in this parameter will be replaced with an hash of the compilation. See the [Caching guide](/how-to/cache) for details.
305+
Note that `[hash]` in this parameter will be replaced with an hash of the compilation. See the [Caching guide](/guides/caching) for details.
306306

307307
Examples:
308308

content/guides/author-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ If `library` property is set and `libraryTarget` is set to be `var` by default,
178178

179179
### Final Steps
180180

181-
[Tweak your production build using webpack](/how-to/generate-production-build).
181+
[Tweak your production build using webpack](/guides/production-build).
182182

183183
Add the path to your generated bundle as the package's main file in `package.json`
184184

content/guides/code-splitting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ There are mainly two kind of code-splits that need to be accomplished with `webp
1717
### Code splitting with `require.ensure()`
1818

1919
`require.ensure()` is the CommonJS way of including assets asynchronously. By adding `require.ensure([<fileurl>])`, we can define a split point in the code. webpack can then create a separate bundle of all the code inside this split point.
20-
Learn [how to split your code using `require.ensure()`](/how-to/code-splitting/splitting-require)
20+
Learn [how to split code](/guides/code-splitting-require) using `require.ensure()`.
2121

2222
?> Document `System.import()`
2323

@@ -26,10 +26,10 @@ Learn [how to split your code using `require.ensure()`](/how-to/code-splitting/s
2626
### CSS splitting
2727

2828
An application owner would want to split all the css into a separate bundle. This enhances cacheability of the resource bundle and also allows the browser to parallely load the bundle which makes for a solid performance improvement.
29-
Learn [how to split your css using Extract-Text-Webpack-Plugin](/how-to/code-splitting/splitting-css)
29+
Learn [how to split css](/guides/code-splitting-css) using the ExtractTextWebpackPlugin.
3030

3131
### Vendor code splitting
3232

3333
A typical application uses third party libraries for framework/functionality needs. Particular versions of these libraries are used and code here does not change often. However, the application code changes frequently. Bundling application code with third party code would be inefficient. This is because the browser can cache asset files based on the cache header. To take advantage of this, we want to keep the hash of the vendor files constant regardless of application code changes. We can do this only when we separate the bundles for vendor and application code.
3434

35-
Learn [how to split your vendor code using CommonsChunkPlugin](/how-to/code-splitting/splitting-vendor)
35+
Learn [how to split vendor/library](/guides/code-splitting-libraries) code using the CommonsChunkPlugin.

content/guides/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The command above should automatically open your browser on `http://localhost:80
8686

8787
Make a change in one of your files and hit save. You should see that the console is recompiling. After that's done, the page should be refreshed. If nothing happens in the console, you may need to fiddle with [`watchOptions`](/configuration/dev-server#devserver-watchoptions-).
8888

89-
Now you have live reloading working, you can take it even a step further: Hot Module Replacement. This is an interface that makes it possible to swap modules **without a page refresh**. Find out how to [configure HMR](/how-to/hot-module-reload).
89+
Now you have live reloading working, you can take it even a step further: Hot Module Replacement. This is an interface that makes it possible to swap modules **without a page refresh**. Find out how to [configure HMR](/guides/hmr).
9090

9191
By default **inline mode** is used. This mode injects the client - needed for live reloading and showing build errors - in your bundle. With inline mode you will get build errors and warnings in your DevTools console.
9292

0 commit comments

Comments
 (0)