File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ These options makes the build watch for changes in files of the dependency graph
169
169
170
170
### Optimize Options
171
171
172
- These options allow to manipulate optimisations for a production build using webpack
172
+ These options allow you to manipulate optimisations for a production build using webpack
173
173
174
174
| Parameter | Explanation | Plugin used |
175
175
| ---------------------------| --------------------------------------------------------| --------------------------------------|
@@ -180,7 +180,7 @@ These options allow to manipulate optimisations for a production build using web
180
180
181
181
### Resolve Options
182
182
183
- These allow to configure the webpack resolver with aliases and extensions.
183
+ These allow you to configure the webpack resolver with aliases and extensions.
184
184
185
185
| Parameter | Explanation | Example |
186
186
| ------------------------| ---------------------------------------------------------| ---------------------------------------------|
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Example:
20
20
require (" ./template/" + name + " .ejs" );
21
21
```
22
22
23
- Webpack parses the require statement and extracts some information:
23
+ Webpack parses the ` require() ` call and extracts some information:
24
24
25
25
```
26
26
Directory: ./template
@@ -45,8 +45,9 @@ This means dynamic requires are supported but will cause all possible modules to
45
45
46
46
## ` require.context `
47
47
48
- You can create your own context with the require.context function.
49
- It allow to pass a directory, regular expression and a flag if subdirectories should be searched too.
48
+ You can create your own context with the ` require.context() ` function.
49
+ It allows you to pass in a directory to search, a flag indicating whether subdirectories should be searched
50
+ too, and a regular expression to match files against.
50
51
51
52
Webpack parses for ` require.context() ` in the code while building.
52
53
@@ -84,7 +85,7 @@ function importAll (r) {
84
85
}
85
86
importAll (require .context (' ../components/' , true , / \. js$ / ));
86
87
```
87
-
88
+
88
89
``` javascript
89
90
var cache = {};
90
91
function importAll (r ) {
You can’t perform that action at this time.
0 commit comments