You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2799c4f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+45-55Lines changed: 45 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,16 @@
6
6
7
7
# Introduction
8
8
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.
10
10
11
-
**TL;DR**
11
+
**TL;DR**
12
12
13
13
* bundles [CommonJs](http://www.commonjs.org/specs/modules/1.0/) and [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules. (even combined)
14
14
* can create a single bundle or multiple chunks loaded on demand, to reduce initial loading time.
15
15
* dependencies are resolved during compilation reducing the runtime size
16
16
* loaders can preprocess files while compiling, i. e. coffee-script to javascript
17
17
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.
19
19
20
20
# Installation
21
21
@@ -35,95 +35,88 @@ Take a look at the [`examples`](https://github.com/webpack/webpack/tree/master/e
35
35
36
36
## Plugins
37
37
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**.
39
39
40
40
## Performance
41
41
42
-
webpack uses async I/O and has multiple caching levels. This makes webpack fastand 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.
43
43
44
44
## Loaders
45
45
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.
47
47
48
48
## Support
49
49
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**.
51
51
52
52
## Code Splitting
53
53
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.
59
55
56
+
## Optimization
60
57
58
+
Webpack optimizes in several ways. It also makes your chunks **cache-friendly** by using hashes.
61
59
62
60
# A small example of what's possible
63
61
64
62
```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.
You can run the node tests with `npm test`. [](http://travis-ci.org/webpack/webpack)[](https://ci.appveyor.com/project/sokra/webpack/branch/master)
119
+
You can run the Node tests with `npm test`. [](http://travis-ci.org/webpack/webpack)[](https://ci.appveyor.com/project/sokra/webpack/branch/master)
127
120
128
121
You can run the browser tests:
129
122
@@ -132,32 +125,29 @@ cd test/browsertests
132
125
node build
133
126
```
134
127
135
-
and open `tests.html` in browser.
136
-
128
+
and open `tests.html` in the browser.
137
129
138
130
139
131
## Contribution
140
132
141
-
You are welcome to contribute by opening an issue or a pull request.
142
-
It would be nice if you opensourced 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. :)
143
135
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.
145
137
146
138
If you want to discuss something or just need help, [here is a gitter.im room](https://gitter.im/webpack/webpack).
147
139
148
-
149
140
## License
150
141
151
142
Copyright (c) 2012-2014 Tobias Koppers
152
143
153
144
MIT (http://www.opensource.org/licenses/mit-license.php)
154
145
155
-
156
146
## Sponsor
157
147
158
-
This is a freetime project. My time investment fluctuates randomly. If you use webpack for a serious taskyou 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.
159
149
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.
161
151
162
152
[](http://sokra.github.io/)
0 commit comments