Skip to content

Commit 2799c4f

Browse files
author
Nima Mehanian
committed
Remove typos
1 parent ad81998 commit 2799c4f

1 file changed

Lines changed: 45 additions & 55 deletions

File tree

‎README.md‎

Lines changed: 45 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66

77
# Introduction
88

9-
webpack is a bundler for modules. The main purpose is to bundle javascript files for usage in a browser.
9+
Webpack is a bundler for modules. Its main purpose is to bundle JavaScript files for usage in a browser.
1010

11-
**TL;DR**
11+
**TL; DR**
1212

1313
* bundles [CommonJs](http://www.commonjs.org/specs/modules/1.0/) and [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules. (even combined)
1414
* can create a single bundle or multiple chunks loaded on demand, to reduce initial loading time.
1515
* dependencies are resolved during compilation reducing the runtime size
1616
* loaders can preprocess files while compiling, i. e. coffee-script to javascript
1717

18-
Check the [documentation](http://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=trdr) if you want to know more...
18+
Check the [documentation](http://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=trdr) if you want to know more.
1919

2020
# Installation
2121

@@ -35,95 +35,88 @@ Take a look at the [`examples`](https://github.com/webpack/webpack/tree/master/e
3535

3636
## Plugins
3737

38-
webpack has a [rich plugin interface](http://webpack.github.io/docs/plugins.html). Most of the features within webpack itself use this plugin interface. This makes webpack very **flexible**.
38+
Webpack has a [rich plugin interface](http://webpack.github.io/docs/plugins.html). Most of the features in Webpack use this plugin interface. This makes Webpack very **flexible**.
3939

4040
## Performance
4141

42-
webpack uses async I/O and has multiple caching levels. This makes webpack fast and incredibly **fast** on incremental compilations.
42+
Webpack uses async I/O and has multiple caching levels. This makes Webpack fast--and **incredibly** fast** on incremental compilations.
4343

4444
## Loaders
4545

46-
webpack enables use of loaders to preprocess files. This allows you to bundle **any static resource** way beyond javascript. You can easily [write your own loaders](http://webpack.github.io/docs/loaders.html) using node.js.
46+
Webpack enables the usage of loaders to preprocess files. This allows you to bundle **any static resource**, not just Javascript. You can easily [write your own loaders](http://webpack.github.io/docs/loaders.html) using Node.js.
4747

4848
## Support
4949

50-
webpack supports **AMD and CommonJS** module styles. It performs clever static analysis on the AST of your code. It even has an evaluation engine to evaluate simple expressions. This allows you to **support most existing libraries**.
50+
Webpack supports **AMD and CommonJS** modules. It performs clever, static analyses on the AST of your code. It even has an evaluation engine to evaluate simple expressions. This allows you to **support most existing libraries**.
5151

5252
## Code Splitting
5353

54-
webpack allows you to split your codebase into multiple chunks. Chunks are loaded **on demand**. This reduces the initial loading time.
55-
56-
## Optimizations
57-
58-
webpack can do many optimizations to **reduce the output size**. It also can make your chunks **cache friendly** by using hashes.
54+
Webpack allows you to split your codebase into multiple chunks. Chunks are loaded **on-demand**. This reduces the initial loading time.
5955

56+
## Optimization
6057

58+
Webpack optimizes in several ways. It also makes your chunks **cache-friendly** by using hashes.
6159

6260
# A small example of what's possible
6361

6462
``` javascript
65-
// webpack is a module bundler
66-
// This means webpack takes modules with dependencies
67-
// and emits static assets representing those modules.
63+
// Webpack is a module bundler.
64+
// This means Webpack takes modules with dependencies
65+
// and emits static assets representing those modules.
6866

69-
// dependencies can be written in CommonJs
67+
// Dependencies can be written in CommonJs
7068
var commonjs = require("./commonjs");
7169
// or in AMD
72-
define(["amd-module", "../file"], function(amdModule, file) {
73-
// while previous constructs are sync
70+
define(["amd-module", "../file"], function (amdModule, file) {
71+
// while previous constructs are sync,
7472
// this is async
75-
require(["big-module/big/file"], function(big) {
76-
// for async dependencies webpack splits
77-
// your application into multiple "chunks".
73+
require(["big-module/big/file"], function (big) {
74+
// For async dependencies, Webpack splits
75+
// your application into multiple "chunks."
7876
// This part of your application is
79-
// loaded on demand (Code Splitting)
77+
// loaded on demand (code-splitting).
8078
var stuff = require("../my/stuff");
81-
// "../my/stuff" is also loaded on demand
79+
// "../my/stuff" is also loaded on-demand
8280
// because it's in the callback function
83-
// of the AMD require
81+
// of the AMD require.
8482
});
8583
});
8684

8785

8886
require("coffee!./cup.coffee");
89-
// "Loaders" can be used to preprocess files.
87+
// "Loaders" are used to preprocess files.
9088
// They can be prefixed in the require call
91-
// or configured in the configuration.
89+
// or configured in the configuration.
9290
require("./cup");
9391
// This does the same when you add ".coffee" to the extensions
94-
// and configure the "coffee" loader for /\.coffee$/
95-
96-
97-
function loadTemplate(name) {
92+
// and configure the "coffee" loader for /\.coffee$/
93+
94+
function loadTemplate (name) {
9895
return require("./templates/" + name + ".jade");
99-
// many expressions are supported in require calls
100-
// a clever parser extracts information and concludes
101-
// that everything in "./templates" that matches
102-
// /\.jade$/ should be included in the bundle, as it
103-
// can be required.
96+
// Many expressions are supported in require calls.
97+
// A clever parser extracts information and concludes
98+
// that everything in "./templates" that matches
99+
// /\.jade$/ should be included in the bundle, as it
100+
// can be required.
104101
}
105-
106-
107-
// ... and you can combine everything
108-
function loadTemplateAsync(name, callback) {
102+
103+
104+
// ...and you can combine everything.
105+
function loadTemplateAsync (name, callback) {
109106
require(["bundle?lazy!./templates/" + name + ".jade"],
110-
function(templateBundle) {
111-
templateBundle(callback);
107+
function (templateBundle) {
108+
templateBundle(callback);
112109
});
113110
}
114111
```
115112

116-
117-
118113
## Documentation
119114

120115
[documentation](http://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=documentation)
121116

122-
123-
124117
## Tests
125118

126-
You can run the node tests with `npm test`. [![build status (linux)](https://secure.travis-ci.org/webpack/webpack.png)](http://travis-ci.org/webpack/webpack) [![Build status (windows)](https://ci.appveyor.com/api/projects/status/vatlasj366jiyuh6/branch/master)](https://ci.appveyor.com/project/sokra/webpack/branch/master)
119+
You can run the Node tests with `npm test`. [![build status (linux)](https://secure.travis-ci.org/webpack/webpack.png)](http://travis-ci.org/webpack/webpack) [![Build status (windows)](https://ci.appveyor.com/api/projects/status/vatlasj366jiyuh6/branch/master)](https://ci.appveyor.com/project/sokra/webpack/branch/master)
127120

128121
You can run the browser tests:
129122

@@ -132,32 +125,29 @@ cd test/browsertests
132125
node build
133126
```
134127

135-
and open `tests.html` in browser.
136-
128+
and open `tests.html` in the browser.
137129

138130

139131
## Contribution
140132

141-
You are welcome to contribute by opening an issue or a pull request.
142-
It would be nice if you open sourced your own loaders or webmodules. :)
133+
You are welcome to contribute by opening an issue or by issuing a pull request.
134+
It would be nice if you open-sourced your own loaders or web-modules. :)
143135

144-
You are also welcome to correct any spelling mistakes or any language issues, because my english is not perfect...
136+
You are also welcome to correct any spelling mistakes or any language issues, because my English is not perfect.
145137

146138
If you want to discuss something or just need help, [here is a gitter.im room](https://gitter.im/webpack/webpack).
147139

148-
149140
## License
150141

151142
Copyright (c) 2012-2014 Tobias Koppers
152143

153144
MIT (http://www.opensource.org/licenses/mit-license.php)
154145

155-
156146
## Sponsor
157147

158-
This is a freetime project. My time investment fluctuates randomly. If you use webpack for a serious task you may want me to invest more time. Or if you make some good revenue you can give some money back. Keep in mind that this project may increase your income. It makes development and applications faster and reduces the required bandwidth.
148+
This is a free-time project. The time I invest in it fluctuates. If you use Webpack for a serious task, and you'd like me to invest more time on it, please donate. This project increases your income/productivity too. It makes development and applications faster and it reduces the required bandwidth.
159149

160-
I'm very thankful for every dollar. If you leave your username or email I may show my thanks by giving you extra support.
150+
I'm very thankful for every dollar. If you leave your username or email, I may show my thanks by giving you extra support.
161151

162152
[![Donate to sokra](http://img.shields.io/donate/sokra.png)](http://sokra.github.io/)
163153

0 commit comments

Comments
 (0)