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
Copy file name to clipboardExpand all lines: README.md
+29-25Lines changed: 29 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,29 +27,33 @@ Take a look at the [`examples`](https://github.com/webpack/webpack/tree/master/e
27
27
28
28
# Features
29
29
30
-
* loaders are chainable
31
-
* loaders run in node.js and can do a bunch of stuff
32
-
* option to name your file with a hash of the content
33
-
* watch mode
34
-
* SourceUrl and SourceMap support
35
-
* plugin system, extend webpack or build a complete different compiler
36
-
* i. e. [component](https://github.com/webpack/component-webpack-plugin), [rewire](https://github.com/jhnns/rewire-webpack) and [more...](http://webpack.github.io/docs/webpack-plugins.html?utm_source=github&utm_medium=readme&utm_campaign=features)
* CLI with [arguments](http://webpack.github.io/docs/webpack-detailed-usage.html?utm_source=github&utm_medium=readme&utm_campaign=features)
39
-
* CLI with [config file](http://webpack.github.io/docs/webpack-options.html?utm_source=github&utm_medium=readme&utm_campaign=features), [arguments](http://webpack.github.io/docs/webpack-detailed-usage.html?utm_source=github&utm_medium=readme&utm_campaign=features) are still possible
40
-
* usable as library from node.js
41
-
* usable as [grunt plugin](https://github.com/webpack/grunt-webpack)
42
-
* browser replacements
43
-
* comes with browser replacements for some node.js modules
webpack has a rich plugin interface. Most of the features are internal plugins using this interface. This makes webpack very **flexible**.
33
+
34
+
## Performance
35
+
36
+
webpack uses async I/O and has multiple caching levels. This makes webpack fast and incredible **fast** on incremental compilation.
37
+
38
+
## Loaders
39
+
40
+
webpack allows to use loaders to preprocess files. This allows you to bundle **any static resource** not only javascript. You can easily write your own loaders running in node.js.
41
+
42
+
## Support
43
+
44
+
webpack supports **AMD and CommonJs** module styles. It perform clever static analysis on the AST of your code. It even has a evaluation engine to evaluate simple expressions. This allows you to **support most existing libraries**.
45
+
46
+
## Code Splitting
47
+
48
+
webpack allows to split your codebase into chunks. Chunks are loaded **on demand**. This reduces initial loading time.
49
+
50
+
## Optimizations
51
+
52
+
webpack can do many optimizations to **reduce the output size**. It also cares about **caching** by using hashes.
53
+
54
+
55
+
56
+
# A small example what's possible
53
57
54
58
```javascript
55
59
var commonjs =require("./commonjs");
@@ -100,7 +104,7 @@ function loadTemplateAsync(name, callback) {
100
104
101
105
## Tests
102
106
103
-
You can run the unit tests with `npm test`. [](http://travis-ci.org/webpack/webpack)
107
+
You can run the node tests with `npm test`. [](http://travis-ci.org/webpack/webpack)
104
108
105
109
You can run the browser tests:
106
110
@@ -125,7 +129,7 @@ If you want to discus something or just need help, [here is a gitter.im room](ht
125
129
126
130
## License
127
131
128
-
Copyright (c) 2012-2013 Tobias Koppers
132
+
Copyright (c) 2012-2014 Tobias Koppers
129
133
130
134
MIT (http://www.opensource.org/licenses/mit-license.php)
0 commit comments