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
+10-17Lines changed: 10 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@
33
33
<h1>webpack</h1>
34
34
<p>
35
35
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset.
36
-
<p>
36
+
</p>
37
37
</div>
38
38
39
39
<h2align="center">Install</h2>
@@ -52,15 +52,15 @@ yarn add webpack --dev
52
52
53
53
<h2align="center">Introduction</h2>
54
54
55
-
> This README reflects Webpack v2.x and v3.x. The Webpack v1.x documentation has been deprecated and deleted.
55
+
> This README reflects webpack v2.x and v3.x. The webpack v1.x documentation has been deprecated and deleted.
56
56
57
57
webpack is a bundler for modules. The main purpose is to bundle JavaScript
58
58
files for usage in a browser, yet it is also capable of transforming, bundling,
59
59
or packaging just about any resource or asset.
60
60
61
61
**TL;DR**
62
62
63
-
* Bundles [ES Modules](http://www.2ality.com/2014/09/es6-modules-final.html), [CommonJS](http://wiki.commonjs.org/) and [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules (even combined).
63
+
* Bundles [ES Modules](http://www.2ality.com/2014/09/es6-modules-final.html), [CommonJS](http://wiki.commonjs.org/), and [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules (even combined).
64
64
* Can create a single bundle or multiple chunks that are asynchronously loaded at runtime (to reduce initial loading time).
65
65
* Dependencies are resolved during compilation, reducing the runtime size.
66
66
* Loaders can preprocess files while compiling, e.g. TypeScript to JavaScript, Handlebars strings to compiled functions, images to Base64, etc.
@@ -70,6 +70,11 @@ or packaging just about any resource or asset.
70
70
71
71
Check out webpack's quick [**Get Started**](https://webpack.js.org/get-started/) guide and the [other guides](https://webpack.js.org/guides/).
72
72
73
+
### Browser Compatibility
74
+
75
+
webpack supports all browsers that are [ES5-compliant](http://kangax.github.io/compat-table/es5/) (IE8 and below are not supported).
76
+
webpack also needs `Promise` for `import()` and `require.ensure()`. If you want to support older browsers, you will need to [load a polyfill](https://webpack.js.org/guides/shimming/) before using these expressions.
77
+
73
78
<h2align="center">Concepts</h2>
74
79
75
80
### [Plugins](https://webpack.js.org/plugins/)
@@ -182,7 +187,7 @@ or are automatically applied via regex from your webpack configuration.
182
187
183
188
|Name|Status|Description|
184
189
|:--:|:----:|:----------|
185
-
|<ahref="https://github.com/webpack/style-loader">`<style>`|![style-npm]|Add exports of a module as style to DOM|
190
+
|<ahref="https://github.com/webpack/style-loader">`<style>`</a>|![style-npm]|Add exports of a module as style to DOM|
186
191
|<ahref="https://github.com/webpack/css-loader"><imgwidth="48"height="48"src="https://worldvectorlogo.com/logos/css-3.svg"></a>|![css-npm]|Loads CSS file with resolved imports and returns CSS code|
187
192
|<ahref="https://github.com/webpack/less-loader"><imgwidth="48"height="48"src="https://worldvectorlogo.com/logos/less-63.svg"></a>|![less-npm]|Loads and compiles a LESS file|
188
193
|<ahref="https://github.com/jtangelder/sass-loader"><imgwidth="48"height="48"src="https://worldvectorlogo.com/logos/sass-1.svg"></a>|![sass-npm]|Loads and compiles a SASS/SCSS file|
@@ -324,25 +329,13 @@ If you have discovered a 🐜 or have a feature suggestion, feel free to create
0 commit comments