Skip to content

Commit 521ff18

Browse files
authored
Merge pull request #313 from webpack/feature/text-fixes
minor text changes
2 parents 19efd33 + 20e2a2a commit 521ff18

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

content/concepts/module-resolution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ require("../src/file");
3737
require("./file");
3838
```
3939

40-
In this case, the directory of the resource file is taken to be the context directory. The given relative path is joined to the context path to produce the absolute path to the file.
40+
In this case, the directory of the resource file is taken to be the context directory (the directory of the currently processed file). The given relative path is joined to the context path to produce the absolute path to the file.
4141

4242
* Module path
4343

@@ -47,7 +47,7 @@ require("module/lib/file");
4747
```
4848

4949
Modules are searched for inside directories which are specified using `resolve.modules`, which is can be an array comprising of different paths.
50-
Aliasing, ie setting `resolve.alias` to an existing module path, allows you to replace the module path with an alias name during `require/import`.
50+
Aliasing, i. e. setting `resolve.alias` to an existing module path, allows you to replace the module path with an alias name during `require/import`.
5151

5252
Once the path is resolved based on the above rule, the resolver checks if the path points to a file or to a directory. If the path points to a file then it is bundled straightaway.
5353
But if the path points to a folder, then the following steps are taken to find the right file with the right extension.

content/concepts/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In contrast to Node.js modules, webpack _modules_ can express their _dependencie
2222
* An ECMAScript2015 `import` statement
2323
* An AMD `define` and `require` statement
2424
* An `@import` statement inside of a css/sass/less file.
25-
* An image url in a stylesheet or html file.
25+
* An image url in a stylesheet (`url(...)`) or html (`<img src=...>`) file.
2626

2727
T> webpack 1 requires a specific loader to convert ECMAScript2015 `import`, however this is possible out of the box via webpack 2
2828

content/concepts/targets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The following is a list of values you can pass to the `target` property.
2828

2929
* `"async-node"` Compile for usage in a node.js-like environment (use `fs` and `vm` to load chunks async)
3030
* `"electron-main"` Compile for electron renderer process, provide a target using `JsonpTemplatePlugin`, `FunctionModulePlugin` for browser environment and `NodeTargetPlugin` and `ExternalsPlugin` for commonjs and electron bulit-in modules. *Note: need `webpack` >= 1.12.15.
31-
* `"node"` Compile for usage in a node.js-like environment (use `require` to load chunks)
31+
* `"node"` Compile for usage in a node.js-like environment (uses node.js `require` to load chunks)
3232
* `"node-webkit"` Compile for usage in webkit, uses jsonp chunk loading but also supports build in node.js modules plus require("nw.gui") (experimental)
3333
* `"web"` Compile for usage in a browser-like environment (default)
3434
* `"webworker"` Compile as WebWorker

content/how-to/upgrade-from-webpack-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function onClick() {
263263

264264
Good news: Failure to load a chunk can be handled now because they are `Promise` based.
265265

266-
Caveat: `require.ensure` allows for easy chunk naming with the optional third argument, but `System.import` API doesn't offer that capability. If you want to keep that functionality, you can continue using `require.ensure`.
266+
Caveat: `require.ensure` allows for easy chunk naming with the optional third argument, but `System.import` API doesn't offer that capability yet. If you want to keep that functionality, you can continue using `require.ensure`.
267267

268268
```javascript
269269
require.ensure([], function(require) {

0 commit comments

Comments
 (0)