Skip to content

Commit 50ea1cb

Browse files
committed
moved changes to template.md
1 parent 86d9686 commit 50ea1cb

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

examples/code-splitting/template.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This example illustrate a very simple case of Code Splitting with `require.ensure`.
1+
This example illustrates a very simple case of Code Splitting with `require.ensure`.
22

3-
* `a` and `b` are required normally via CommonsJs
3+
* `a` and `b` are required normally via CommonJS
44
* `c` is depdended through the `require.ensure` array.
55
* This means: make it available, but don't execute it
66
* webpack will load it on demand
@@ -12,7 +12,7 @@ This example illustrate a very simple case of Code Splitting with `require.ensur
1212

1313
You can see that webpack outputs two files/chunks:
1414

15-
* `output.js` is the entry chunks and contains
15+
* `output.js` is the entry chunk and contains
1616
* the module system
1717
* chunk loading logic
1818
* the entry point `example.js`

examples/multiple-entry-points/template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This example show how to use multiple entry points with a commons chunk.
1+
This example shows how to use multiple entry points with a commons chunk.
22

3-
In this example you have two (HTML) pages `pageA` and `pageB`. You want to create individual bundles for each page. In addition to this you want to create a shared bundle that contains all modules that used in both pages (assuming there are many/big modules in common). The pages also use Code Splitting to load a less used part of the features on demand.
3+
In this example you have two (HTML) pages `pageA` and `pageB`. You want to create individual bundles for each page. In addition to this you want to create a shared bundle that contains all modules used in both pages (assuming there are many/big modules in common). The pages also use Code Splitting to load a less used part of the features on demand.
44

55
You can see how to define multiple entry points via the `entry` option and the required changes (`[name]`) in the `output` option. You can also see how to use the CommonsChunkPlugin.
66

@@ -13,15 +13,15 @@ You can see the output files:
1313
* `pageA.bundle.js` contains: (`pageB.bundle.js` is similar)
1414
* the entry point `pageA.js`
1515
* it would contain any other module that is only used by `pageA`
16-
* `0.chunk.js` is an additional chunk which if used by both pages. It contains:
16+
* `0.chunk.js` is an additional chunk which is used by both pages. It contains:
1717
* module `shared.js`
1818

1919
You can also see the info that is printed to console. It shows among others:
2020

2121
* the generated files
2222
* the chunks with file, name and id
2323
* see lines starting with `chunk`
24-
* the modules that are in this chunks
24+
* the modules that are in the chunks
2525
* the reasons why the modules are included
2626
* the reasons why a chunk is created
2727
* see lines starting with `>`

0 commit comments

Comments
 (0)