File tree 5 files changed +14
-7
lines changed
5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ contributors:
10
10
11
11
Plugins are a key piece of the webpack ecosystem and provide the community with
12
12
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
14
14
of the way, the plugin will have full access to the ` compiler ` and, when
15
15
applicable, the current ` compilation ` .
16
16
41
41
Depending on the hooks used and ` tap ` methods applied, plugins can function in
42
42
a different number of ways. The way this works is closely related to the
43
43
[ 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
45
45
` tap ` methods are available.
46
46
47
47
So depending which event you ` tap ` into, the plugin may run differently. For
@@ -96,5 +96,5 @@ different hook classes and how they work.
96
96
97
97
## Next Steps
98
98
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
100
100
` compiler ` hooks and the parameters they make available.
Original file line number Diff line number Diff line change 7
7
Resolvers are created using the ` enhanced-resolve ` package. The ` Resolver `
8
8
class extends the ` tapable ` class and uses ` tapable ` to provide a few hooks.
9
9
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
11
11
tapped into.
12
12
13
13
Before reading on, make sure you at least skim through the
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ A plugin for `webpack` consists of
13
13
14
14
- A named JavaScript function.
15
15
- 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.
17
17
- Manipulates webpack internal instance specific data.
18
18
- Invokes webpack provided callback after functionality is complete.
19
19
Original file line number Diff line number Diff line change @@ -35,6 +35,13 @@ function main() {
35
35
function fetchPackageNames ( options , cb ) {
36
36
const github = new GitHubApi ( ) ;
37
37
38
+ if ( process . env . GITHUB_TOKEN ) {
39
+ github . authenticate ( {
40
+ type : 'token' ,
41
+ token : process . env . GITHUB_TOKEN
42
+ } ) ;
43
+ }
44
+
38
45
// XXX: weak since this handles only one page
39
46
github . repos . getForOrg ( {
40
47
org : options . organization ,
Original file line number Diff line number Diff line change @@ -7439,9 +7439,9 @@ tap-parser@^6.0.1:
7439
7439
js-yaml "^3.2.7"
7440
7440
minipass "^2.2.0"
7441
7441
7442
- " tap-render@github:munter /tap-render#0.1.7-patch1 " :
7442
+ tap-render@Munter /tap-render#0.1.7-patch1:
7443
7443
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"
7445
7445
dependencies :
7446
7446
jsonify "0.0.0"
7447
7447
pause-stream "0.0.7"
You can’t perform that action at this time.
0 commit comments