Skip to content

Commit 54af6f2

Browse files
committed
docs: typo fixes
1 parent 1d1f397 commit 54af6f2

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ As developer you want to reuse existing code.
44
As with node.js and web all files are already in the same language, but it is extra work to use your code with the node.js module system and the browser.
55

66
The goal of `webpack` is to bundle CommonJs modules into javascript files which can be loaded by `<script>`-tags.
7-
Simply concating all required files has a disadvantage: many code to download (and execute) on page load.
7+
Simply concatenating all required files has a disadvantage: many code to download (and execute) on page load.
88
Therefore `webpack` uses the `require.ensure` function ([CommonJs/Modules/Async/A](http://wiki.commonjs.org/wiki/Modules/Async/A)) to split your code automatically into multiple bundles which are loaded on demand.
99
This happens mostly transparent to the developer.
1010
Dependencies are resolved for you.
11-
The result is a smaller inital code download which results in faster page load.
11+
The result is a smaller initial code download which results in faster page load.
1212

1313
Another common thing in web development is that some files have to be preprocessed before send to the client (ex. template files).
1414
This introduce more complexity to the compile step.
@@ -27,11 +27,11 @@ You as developer can use such files like any other module.
2727

2828
* make node.js and browser development similar
2929
* minimize code size (mobile connection)
30-
* minimize code size on inital download
30+
* minimize code size on initial download
3131
* download code only on demand
3232
* require minimal configuration, but offer a maximum
3333
* load polyfills for node-specific things if used
34-
* offer replacements for node buildin libaries
34+
* offer replacements for node buildin libraries
3535

3636
# Example
3737

@@ -150,7 +150,7 @@ function getTemplate(templateName) {
150150
```
151151

152152
In addition to that `webpack` uses the `require.context` function automatically
153-
if you use variables or other not parseable things in the `require` function.
153+
if you use variables or other not parse-able things in the `require` function.
154154
That means the following code behaves like the above:
155155

156156
``` javascript
@@ -179,7 +179,7 @@ The following example loads the raw content of a file with the `raw` loader:
179179
var content = require("raw!./file.txt");
180180
```
181181

182-
Multiple loader plugins can be prepended by seperating them with `!`.
182+
Multiple loader plugins can be prepended by separating them with `!`.
183183
The loader plugins are resolved like in normal `require` call but with different default extension.
184184

185185
The `raw` loader plugin is looked up at modules `raw-webpack-web-loader`, `raw-webpack-loader`, `raw-web-loader`, `raw-loader`, `raw`
@@ -197,7 +197,7 @@ The following loaders are included in webpack:
197197
* `css`: Loads css file with resolved imports and returns css code
198198
* `style`: Adds result of javascript execution to DOM
199199
* (`.css` defaults to `style!css` loader, so all css rules are added to DOM)
200-
* `script`: Executes a javascript file once in global context (like in script tag), requires are not parsed. Use this to include a libary. ex. `require("script!./jquery.min.js")`. This is synchron, so the `$` variable is avalible after require.
200+
* `script`: Executes a javascript file once in global context (like in script tag), requires are not parsed. Use this to include a library. ex. `require("script!./jquery.min.js")`. This is synchron, so the `$` variable is available after require.
201201

202202
TODO
203203

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ example demonstrating a very simple case of Code Splitting.
66

77
## require.context
88

9-
example demonstrating to automatic creation of contextes when using variables in `require`.
9+
example demonstrating to automatic creation of contexts when using variables in `require`.
1010

1111
## code-splitted-require.context
1212

13-
example demonstrating contextes in a code-splitted environment.
13+
example demonstrating contexts in a code-split environment.
1414

1515
## loader
1616

0 commit comments

Comments
 (0)