Skip to content

Commit dee23a9

Browse files
author
Rouzbeh Sarrafieh
committed
Hopefully clarify [Concepts/Output](concepts/output.md) and [Concepts/Targets](concepts/targets.md) little bit further as well as some general spelling/grammar (please don't hate me) updates
1 parent f99b56b commit dee23a9

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

content/concepts/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ In the example below JSX (React JavaScript Markup) and Babel are used to create
158158
```javascript
159159
import h from 'jsxobj';
160160

161-
// example of an import'd plugin
161+
// example of an imported plugin
162162
const CustomPlugin = config => ({
163163
...config,
164164
name: 'custom-plugin'

content/concepts/hot-module-replacement.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ The app code asks the HMR runtime to check for updates. The HMR runtime download
1919

2020
In addition to the normal assets the compiler need to emit the "Update" to allow updating from previous version to this version. The "Update" contains two parts:
2121

22-
1. the update manifest (JSON)
23-
2. one or multiple update chunks (JavaScript)
22+
1. The update manifest (JSON)
23+
2. One or multiple update chunks (JavaScript)
2424

2525
The manifest contains the new compilation hash and a list of all update chunks (2.).
2626

2727
The update chunks contain code for all updated modules in this chunk (or a flag if a module was removed).
2828

29-
The compiler addtionally makes sure that module and chunk ids are consistent between these builds. It uses a "records" json file to store them between builds (or it stores them in memory).
29+
The compiler additionally makes sure that module and chunk ids are consistent between these builds. It uses a "records" json file to store them between builds (or it stores them in memory).
3030

3131
### From The Module View
3232

@@ -40,7 +40,7 @@ For the module system runtime additional code is emitted to track module `parent
4040

4141
On the management side the runtime supports two methods: `check` and `apply`.
4242

43-
A `check` does a HTTP request to the update manifest. When this request fails, there is no update available. Elsewise the list of updated chunks is compared to the list of currently loaded chunks. For each loaded chunk the corresponding update chunk is downloaded. All module updates as stored in the runtime as update. The runtime switches into the `ready` state, meaning an update has been downloaded and is ready to be applied.
43+
A `check` does a HTTP request to the update manifest. When this request fails, there is no update available. Otherwise, the list of updated chunks is compared to the list of currently loaded chunks. For each loaded chunk the corresponding update chunk is downloaded. All module updates as stored in the runtime as update. The runtime switches into the `ready` state, meaning an update has been downloaded and is ready to be applied.
4444

4545
For each new chunk request in the ready state the update chunk is also downloaded.
4646

@@ -52,6 +52,6 @@ Now all invalid modules are disposed (dispose handler) and unloaded. Then the cu
5252

5353
You can use it in development as a LiveReload replacement. webpack-dev-server supports a hot mode which tries to update with HMR before trying to reload the whole page. See how to implement [HMR with React](/guides/hmr-react) for example.
5454

55-
Some loaders already generate modules that are hot-updateable. i.e. the `style-loader` can exchange the stylesheet. You don't need to do anything special.
55+
Some loaders already generate modules that are hot-updatable. i.e. the `style-loader` can exchange the stylesheet. You don't need to do anything special.
5656

57-
webpack's power lies in its customizability, and there are *many* ways of configuring HMR given the needs of a particular project.
57+
Webpack's power lies in its customizability, and there are *many* ways of configuring HMR given the needs of a particular project.

content/concepts/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ The webpack community has built _loaders_ for a wide variety of popular language
3939
* [Less](http://lesscss.org)
4040
* [Stylus](http://stylus-lang.com)
4141

42-
And many others! Overall, webpack provides a powerful and rich API for customization that allows one to use webpack for **any stack**, while staying **unopinionated** about your development, testing, and production workflows.
42+
And many others! Overall, webpack provides a powerful and rich API for customization that allows one to use webpack for **any stack**, while staying **non-opinionated** about your development, testing, and production workflows.
4343

4444
For a full list, see [**the list of loaders**](https://webpack.github.io/docs/list-of-loaders.html) or [**write your own**](/api/loaders).

content/concepts/output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ The filename of the Hot Update Main File. It is inside the `output.path` directo
145145

146146
The JSONP function used by webpack for asnyc loading of chunks.
147147

148-
A shorter function may reduce the filesize a bit. Use a different identifier when having multiple webpack instances on a single page.
148+
A shorter function may reduce the file size a bit. Use a different identifier when having multiple webpack instances on a single page.
149149

150150
> Default: `"webpackJsonp"`
151151

content/concepts/targets.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ module.exports = {
2121
};
2222
```
2323

24+
In the example above, using `node` webpack will compile for usage in a Node.js-like environment (uses Node.js `require` to load chunks and not touch any built in modules like `fs` or `path`).
25+
2426
Each _target_ has a variety of deployment/environment specific additions, support to fit its needs. See what [targets are available](/configuration/target).
2527

26-
?> We should expand on this further. What specifically is included.
28+
?>Further expansion for other popular target values
2729

2830
## Multiple Targets
2931

0 commit comments

Comments
 (0)