Skip to content

Commit 46041ce

Browse files
committed
README revision webpack#1
1 parent 3f47a4c commit 46041ce

1 file changed

Lines changed: 18 additions & 21 deletions

File tree

README.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@
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. The main purpose is to bundle javascript
10+
files for usage in a browser, yet it is also capable of transforming, bundling,
11+
or packaging just about any resource or asset.
12+
1013

1114
**TL;DR**
1215

1316
* Bundles both [CommonJs](http://www.commonjs.org/specs/modules/1.0/) and [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules (even combined).
1417
* Can create a single bundle or multiple chunks that are asynchronously loaded at runtime (to reduce initial loading time).
1518
* Dependencies are resolved during compilation reducing the runtime size.
1619
* Loaders can preprocess files while compiling, e.g. coffeescript to javascript, handlebars strings to compiled functions, images to Base64, etc.
20+
* Highly modular plugin system to do whatever else your application requires.
21+
22+
# Getting Started
1723

18-
Check out Webpack's [documentation](http://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=trdr) for quick Getting Started, in-depth usage,
24+
Check out Webpack's [documentation](http://webpack.github.io/docs/?utm_source=github&utm_medium=readme&utm_campaign=trdr) for quick Getting Started guide, in-depth usage,
1925
tutorials and resources.
2026

2127
# Installation
@@ -25,12 +31,13 @@ project:
2531

2632
global:
2733
`npm install webpack -g`
34+
Usage
35+
http://webpack.github.io/docs/tutorials/getting-started/
2836

2937
# Examples
3038

3139
Take a look at the [`examples`](https://github.com/webpack/webpack/tree/master/examples) folder.
3240

33-
3441
# Features
3542

3643
## Plugins
@@ -40,6 +47,7 @@ interface](http://webpack.github.io/docs/plugins.html). Most of the features
4047
within webpack itself use this plugin interface. This makes webpack very
4148
**flexible**.
4249

50+
4351
## Performance
4452

4553
Webpack uses async I/O and has multiple caching levels. This makes webpack fast
@@ -51,7 +59,7 @@ Webpack enables use of loaders to preprocess files. This allows you to bundle
5159
**any static resource** way beyond javascript. You can easily [write your own
5260
loaders](http://webpack.github.io/docs/loaders.html) using node.js.
5361

54-
Loaders are activated by using `loadername!` strings in `require()` statements,
62+
Loaders are activated by using `loadername!` prefixes in `require()` statements,
5563
or are automatically applied via regex from your webpack configuration.
5664

5765
Please see [Using Loaders](http://webpack.github.io/docs/using-loaders.html) for more information.
@@ -83,43 +91,32 @@ Please see [Using Loaders](http://webpack.github.io/docs/using-loaders.html) for
8391
* [`jade`](https://github.com/webpack/jade-loader): Loads jade template and returns a function
8492
* [`handlebars`](https://github.com/altano/handlebars-loader): Loads handlebars template and returns a function
8593
* [`ractive`](https://github.com/rstacruz/ractive-loader): Pre-compiles Ractive templates for interactive DOM manipulation
86-
* [`jsx`](https://github.com/petehunt/jsx-loader): Transform jsx code for [React](http://facebook.github.io/react/) to js code.
87-
* [`em`](https://github.com/yoshdog/emblem-loader): Compiles [Emblem](http://emblemjs.com/) to Handlebars.js
88-
* [`ejs`](https://github.com/okonet/ejs-loader): Loads EJS ([underscore](http://underscorejs.org/#template)( templating engine) template and returns a pre-compiled function
8994
* [`markdown`](https://github.com/peerigon/markdown-loader): Compiles Markdown to HTML
9095
* [`ng-cache`](https://github.com/teux/ng-cache-loader): Puts HTML partials in the Angular's $templateCache
9196

9297
**styling**
93-
* [`bootstrap-sass`](https://github.com/justin808/bootstrap-sass-loader): Loads a configuration file for Twitter Bootstrap integration using Sass. Allows complete customization via Sass.
9498
* [`style`](https://github.com/webpack/style-loader): Add exports of a module as style to DOM
9599
* [`css`](https://github.com/webpack/css-loader): Loads css file with resolved imports and returns css code
96100
* [`less`](https://github.com/webpack/less-loader): Loads and compiles a less file
97101
* [`sass`](https://github.com/jtangelder/sass-loader): Loads and compiles a scss file
98102
* [`stylus`](https://github.com/shama/stylus-loader): Loads and compiles a stylus file
99-
* [`rework`](https://github.com/okonet/rework-loader): Post-process CSS with [Rework](https://github.com/reworkcss/rework) and returns CSS code
100-
* [`postcss`](https://github.com/postcss/postcss-loader): Post-process CSS with Autoprefixer and [other PostCSS plugins](https://github.com/postcss/postcss#built-with-postcss)
101-
* [`autoprefixer`](https://github.com/passy/autoprefixer-loader): Add vendor prefixes to CSS rules using values from Can I Use
102-
* [`namespace-css`](https://github.com/jeffling/namespace-css-loader): Namespace your css with a given selector (for encapsulating all rules in one subset of your site)
103103

104-
**translation**
104+
**misc**
105105
* [`po`](https://github.com/dschissler/po-loader): Loads a PO gettext file and returns JSON
106-
107-
**support**
108-
* [`mocha`](https://github.com/webpack/mocha-loader): do tests with mocha in browser or node.js
106+
* [`mocha`](https://github.com/webpack/mocha-loader): Do tests with mocha in browser or node.js
109107
* [`eslint`](https://github.com/MoOx/eslint-loader): PreLoader for linting code using ESLint.
110108
* [`jshint`](https://github.com/webpack/jshint-loader): PreLoader for linting code.
111109
* [`jscs`](https://github.com/unindented/jscs-loader): PreLoader for style checking.
112110
* [`injectable`](https://github.com/jauco/webpack-injectable): Allow to inject dependencies into modules
113111
* [`transform`](https://github.com/webpack/transform-loader): Use browserify transforms as loader.
114-
* [`image-size`](https://github.com/patcoll/image-size-loader): Loads an image and returns its dimensions and type
115112

116-
For the full list of loaders, please see [list of loaders](http://webpack.github.io/docs/list-of-loaders.html)
113+
For the full list of loaders, see [list of loaders](http://webpack.github.io/docs/list-of-loaders.html).
117114

118-
## Support
115+
## Module Format (AMD/CommonJS)
119116

120-
Webpack supports **AMD and CommonJS** module styles. It performs clever static
117+
Webpack supports **both** AMD and CommonJS module styles. It performs clever static
121118
analysis on the AST of your code. It even has an evaluation engine to evaluate
122-
simple expressions. This allows you to **support most existing libraries**.
119+
simple expressions. This allows you to **support most existing libraries** out of the box.
123120

124121
## Code Splitting
125122

0 commit comments

Comments
 (0)