Skip to content

Commit c4b21c1

Browse files
Merge branch 'master' into split-chunks-plugin-article
2 parents c1350e3 + 6458b1a commit c4b21c1

File tree

7 files changed

+17
-11
lines changed

7 files changed

+17
-11
lines changed

src/content/api/plugins.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ contributors:
1010

1111
Plugins are a key piece of the webpack ecosystem and provide the community with
1212
a powerful way to tap into webpack's compilation process. A plugin is able to
13-
[hook](/api/compiler/#event-hooks) into key events that are fired throughout each compilation. Every step
13+
[hook](/api/compiler-hooks/#hooks) into key events that are fired throughout each compilation. Every step
1414
of the way, the plugin will have full access to the `compiler` and, when
1515
applicable, the current `compilation`.
1616

@@ -41,7 +41,7 @@ noted.
4141
Depending on the hooks used and `tap` methods applied, plugins can function in
4242
a different number of ways. The way this works is closely related to the
4343
[hooks](https://github.com/webpack/tapable#tapable) provided by `Tapable`. The
44-
[compiler hooks](/api/compiler/#event-hooks) each note the underlying `Tapable` hook indicating which
44+
[compiler hooks](/api/compiler-hooks/#hooks) each note the underlying `Tapable` hook indicating which
4545
`tap` methods are available.
4646

4747
So depending which event you `tap` into, the plugin may run differently. For
@@ -96,5 +96,5 @@ different hook classes and how they work.
9696

9797
## Next Steps
9898

99-
See the [compiler hooks](/api/compiler/#event-hooks) section for a detailed listing of all the available
99+
See the [compiler hooks](https://webpack.js.org/api/compiler-hooks/) section for a detailed listing of all the available
100100
`compiler` hooks and the parameters they make available.

src/content/api/resolvers.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sort: 3
77
Resolvers are created using the `enhanced-resolve` package. The `Resolver`
88
class extends the `tapable` class and uses `tapable` to provide a few hooks.
99
The `enhanced-resolve` package can be used directly to create new resolvers,
10-
however any [`compiler` instance](/api/compiler/) has a few resolver instances that can be
10+
however any [`compiler` instance](/api/node/#compiler-instance) has a few resolver instances that can be
1111
tapped into.
1212

1313
Before reading on, make sure you at least skim through the
@@ -50,8 +50,7 @@ with the [`resolve`](/configuration/resolve/) or [`resolveLoader`](/configuratio
5050
users to change the resolving behavior through a variety of options including
5151
through resolve `plugins`.
5252

53-
The resolver plugins, e.g. [`DirectoryNamedPlugin`]
54-
(https://github.com/shaketbaby/directory-named-webpack-plugin), can be included
53+
The resolver plugins, e.g. [`DirectoryNamedPlugin`](https://github.com/shaketbaby/directory-named-webpack-plugin), can be included
5554
directly in `resolve.plugins` rather than using standard plugins. Note that the
5655
`resolve` configuration affects the `normal` and `context` resolvers while
5756
`resolveLoader` is used to modify the `loader` resolver.

src/content/configuration/resolve.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Tell webpack what directories should be searched when resolving modules.
207207

208208
Absolute and relative paths can both be used, but be aware that they will behave a bit differently.
209209

210-
A relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the current directory as well as it's ancestors (i.e. `./node_modules`, `../node_modules`, and on).
210+
A relative path will be scanned similarly to how Node scans for `node_modules`, by looking through the current directory as well as its ancestors (i.e. `./node_modules`, `../node_modules`, and on).
211211

212212
With an absolute path, it will only search in the given directory.
213213

src/content/contribute/writing-a-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A plugin for `webpack` consists of
1313

1414
- A named JavaScript function.
1515
- Defines `apply` method in it's prototype.
16-
- Specifies an [event hook](/api/compiler/#event-hooks) on which to bind itself.
16+
- Specifies an [event hook](/api/compiler-hooks/) on which to bind itself.
1717
- Manipulates webpack internal instance specific data.
1818
- Invokes webpack provided callback after functionality is complete.
1919

src/content/guides/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ __dist/index.html__
167167
</head>
168168
<body>
169169
- <script src="./src/index.js"></script>
170-
+ <script src="dist/bundle.js"></script>
170+
+ <script src="bundle.js"></script>
171171
</body>
172172
</html>
173173
```

src/scripts/fetch_package_names.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ function main() {
3535
function fetchPackageNames(options, cb) {
3636
const github = new GitHubApi();
3737

38+
if(process.env.GITHUB_TOKEN) {
39+
github.authenticate({
40+
type: 'token',
41+
token: process.env.GITHUB_TOKEN
42+
});
43+
}
44+
3845
// XXX: weak since this handles only one page
3946
github.repos.getForOrg({
4047
org: options.organization,

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7439,9 +7439,9 @@ tap-parser@^6.0.1:
74397439
js-yaml "^3.2.7"
74407440
minipass "^2.2.0"
74417441

7442-
"tap-render@github:munter/tap-render#0.1.7-patch1":
7442+
tap-render@Munter/tap-render#0.1.7-patch1:
74437443
version "0.1.7"
7444-
resolved "https://codeload.github.com/munter/tap-render/tar.gz/35bf3ac21c4fd2776d8569d5e8a1ab62df1f6d4f"
7444+
resolved "https://codeload.github.com/Munter/tap-render/tar.gz/35bf3ac21c4fd2776d8569d5e8a1ab62df1f6d4f"
74457445
dependencies:
74467446
jsonify "0.0.0"
74477447
pause-stream "0.0.7"

0 commit comments

Comments
 (0)