Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Feb 10, 2018
1 parent bc840ec commit f010546
Show file tree
Hide file tree
Showing 45 changed files with 454 additions and 602 deletions.
12 changes: 6 additions & 6 deletions examples/aggressive-merging/README.md
Expand Up @@ -57,13 +57,13 @@ module.exports = {

```
Hash: 75bcce350a8b5f748873
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.chunk.js 5.76 kB 0 [emitted]
1.chunk.js 403 bytes 1 [emitted]
pageB.bundle.js 6.42 kB 2 [emitted] pageB
pageA.bundle.js 6.39 kB 3 [emitted] pageA
pageC.bundle.js 6.18 kB 4 [emitted] pageC
1.chunk.js 405 bytes 1 [emitted]
pageB.bundle.js 6.43 kB 2 [emitted] pageB
pageA.bundle.js 6.42 kB 3 [emitted] pageA
pageC.bundle.js 6.19 kB 4 [emitted] pageC
Entrypoint pageA = pageA.bundle.js
Entrypoint pageB = pageB.bundle.js
Entrypoint pageC = pageC.bundle.js
Expand Down Expand Up @@ -102,7 +102,7 @@ chunk {4} pageC.bundle.js (pageC) 70 bytes [entry] [rendered]

```
Hash: 75bcce350a8b5f748873
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.chunk.js 75 bytes 0 [emitted]
1.chunk.js 78 bytes 1 [emitted]
Expand Down
26 changes: 13 additions & 13 deletions examples/chunkhash/README.md
Expand Up @@ -62,7 +62,7 @@ module.exports = {

<!-- inlined minimized file "manifest.[chunkhash].js" -->
<script>
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,i,f,d=0,s=[];d<t.length;d++)i=t[d],o[i]&&s.push(o[i][0]),o[i]=0;for(u in c)Object.prototype.hasOwnProperty.call(c,u)&&(e[u]=c[u]);for(r&&r(t,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)f=n(n.s=a[d]);return f};var t={},o={4:0};n.e=function(e){function r(){u.onerror=u.onload=null,clearTimeout(i);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.charset="utf-8",u.async=!0,u.timeout=12e4,n.nc&&u.setAttribute("nonce",n.nc),u.src=n.p+""+{0:"3db3fdaf96bbdadce99a",1:"7c1138cf80dd374c367e",2:"543257d0ba12aefbc71b",3:"15bdf078724c793dc604"}[e]+".js";var i=setTimeout(r,12e4);return u.onerror=u.onload=r,a.appendChild(u),c},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="js/",n.oe=function(e){throw console.error(e),e}}([]);
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,i,f,s=0,l=[];s<t.length;s++)i=t[s],o[i]&&l.push(o[i][0]),o[i]=0;for(u in c)Object.prototype.hasOwnProperty.call(c,u)&&(e[u]=c[u]);for(r&&r(t,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=n(n.s=a[s]);return f};var t={},o={4:0};n.e=function(e){function r(){u.onerror=u.onload=null,clearTimeout(i);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.charset="utf-8",u.async=!0,u.timeout=12e4,n.nc&&u.setAttribute("nonce",n.nc),u.src=n.p+""+{0:"3db3fdaf96bbdadce99a",1:"7c1138cf80dd374c367e"}[e]+".js";var i=setTimeout(r,12e4);return u.onerror=u.onload=r,a.appendChild(u),c},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="js/",n.oe=function(e){throw console.error(e),e}}([]);
</script>

<!-- optional when using the CommonChunkPlugin for vendor modules -->
Expand Down Expand Up @@ -98,7 +98,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/*!**********************!*\
!*** multi ./vendor ***!
\**********************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

Expand All @@ -118,7 +118,7 @@ webpackJsonp([3],[
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! exports provided: */
/*! no exports provided */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

Expand All @@ -140,14 +140,14 @@ __webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! .
## Uncompressed

```
Hash: 49023fec553882c3285c
Version: webpack 3.5.1
Hash: be6b9171c119036aca2b
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
3db3fdaf96bbdadce99a.js 238 bytes 0 [emitted]
7c1138cf80dd374c367e.js 238 bytes 1 [emitted]
common.[chunkhash].js 732 bytes 2 [emitted] common
main.[chunkhash].js 656 bytes 3 [emitted] main
manifest.[chunkhash].js 5.89 kB 4 [emitted] manifest
3db3fdaf96bbdadce99a.js 239 bytes 0 [emitted]
7c1138cf80dd374c367e.js 239 bytes 1 [emitted]
common.[chunkhash].js 733 bytes 2 [emitted] common
main.[chunkhash].js 657 bytes 3 [emitted] main
manifest.[chunkhash].js 5.83 kB 4 [emitted] manifest
Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js
Entrypoint common = manifest.[chunkhash].js common.[chunkhash].js
chunk {0} 3db3fdaf96bbdadce99a.js 29 bytes {3} [rendered]
Expand Down Expand Up @@ -175,14 +175,14 @@ chunk {4} manifest.[chunkhash].js (manifest) 0 bytes [entry] [rendered]
## Minimized (uglify-js, no zip)

```
Hash: 49023fec553882c3285c
Version: webpack 3.5.1
Hash: be6b9171c119036aca2b
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
3db3fdaf96bbdadce99a.js 38 bytes 0 [emitted]
7c1138cf80dd374c367e.js 38 bytes 1 [emitted]
common.[chunkhash].js 150 bytes 2 [emitted] common
main.[chunkhash].js 165 bytes 3 [emitted] main
manifest.[chunkhash].js 1.46 kB 4 [emitted] manifest
manifest.[chunkhash].js 1.41 kB 4 [emitted] manifest
Entrypoint main = manifest.[chunkhash].js common.[chunkhash].js main.[chunkhash].js
Entrypoint common = manifest.[chunkhash].js common.[chunkhash].js
chunk {0} 3db3fdaf96bbdadce99a.js 29 bytes {3} [rendered]
Expand Down
6 changes: 3 additions & 3 deletions examples/code-splitted-css-bundle/README.md
Expand Up @@ -67,10 +67,10 @@ body {

```
Hash: 5be34b0d3c624e61c616
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
0.output.js 2.43 kB 0 [emitted]
0.output.js 2.44 kB 0 [emitted]
output.js 21.2 kB 1 [emitted] main
style.css 71 bytes 1 [emitted] main
Entrypoint main = output.js style.css
Expand Down Expand Up @@ -105,7 +105,7 @@ Child extract-text-webpack-plugin ../../node_modules/extract-text-webpack-plugin

```
Hash: edbe0e91ba86d814d855
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
0.output.js 343 bytes 0 [emitted]
Expand Down
22 changes: 11 additions & 11 deletions examples/code-splitted-require.context-amd/README.md
Expand Up @@ -99,7 +99,7 @@ getTemplate("b", function(b) {
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
/******/ var script = document.createElement('script');
/******/ script.type = 'text/javascript';
/******/ script.type = "text/javascript";
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.timeout = 120000;
Expand Down Expand Up @@ -176,14 +176,14 @@ getTemplate("b", function(b) {
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

function getTemplate(templateName, callback) {
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 1)("./"+templateName)]; (function(tmpl) {
__webpack_require__.e/* require */(0).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 1)("./"+templateName)]; ((function(tmpl) {
callback(tmpl());
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
}).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}).catch(__webpack_require__.oe);
}
getTemplate("a", function(a) {
console.log(a);
Expand All @@ -205,7 +205,7 @@ webpackJsonp([0],[
/*!*********************************************!*\
!*** ../require.context/templates ^\.\/.*$ ***!
\*********************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

Expand Down Expand Up @@ -238,7 +238,7 @@ webpackContext.id = 1;
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {

Expand All @@ -251,7 +251,7 @@ module.exports = function() {
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {

Expand All @@ -264,7 +264,7 @@ module.exports = function() {
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {

Expand All @@ -282,9 +282,9 @@ module.exports = function() {

```
Hash: 1c46bbe47e8b8a0ee8e2
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.output.js 1.85 kB 0 [emitted]
0.output.js 1.86 kB 0 [emitted]
output.js 6.37 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 463 bytes {1} [rendered]
Expand All @@ -309,7 +309,7 @@ chunk {1} output.js (main) 261 bytes [entry] [rendered]

```
Hash: 1c46bbe47e8b8a0ee8e2
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.output.js 544 bytes 0 [emitted]
output.js 1.52 kB 1 [emitted] main
Expand Down
20 changes: 10 additions & 10 deletions examples/code-splitted-require.context/README.md
Expand Up @@ -99,7 +99,7 @@ getTemplate("b", function(b) {
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
/******/ var script = document.createElement('script');
/******/ script.type = 'text/javascript';
/******/ script.type = "text/javascript";
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.timeout = 120000;
Expand Down Expand Up @@ -176,7 +176,7 @@ getTemplate("b", function(b) {
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

Expand Down Expand Up @@ -205,7 +205,7 @@ webpackJsonp([0],[
/*!*********************************************!*\
!*** ../require.context/templates ^\.\/.*$ ***!
\*********************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

Expand Down Expand Up @@ -238,7 +238,7 @@ webpackContext.id = 1;
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {

Expand All @@ -251,7 +251,7 @@ module.exports = function() {
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {

Expand All @@ -264,7 +264,7 @@ module.exports = function() {
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {

Expand All @@ -282,10 +282,10 @@ module.exports = function() {

```
Hash: f67ab883501eec17d2fb
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.output.js 1.85 kB 0 [emitted]
output.js 6.3 kB 1 [emitted] main
0.output.js 1.86 kB 0 [emitted]
output.js 6.31 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [0] ./example.js 2:1-4:3
Expand All @@ -309,7 +309,7 @@ chunk {1} output.js (main) 276 bytes [entry] [rendered]

```
Hash: f67ab883501eec17d2fb
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.output.js 544 bytes 0 [emitted]
output.js 1.49 kB 1 [emitted] main
Expand Down
14 changes: 7 additions & 7 deletions examples/code-splitting-bundle-loader/README.md
Expand Up @@ -102,7 +102,7 @@ module.exports = "It works";
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
/******/ var script = document.createElement('script');
/******/ script.type = 'text/javascript';
/******/ script.type = "text/javascript";
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.timeout = 120000;
Expand Down Expand Up @@ -179,7 +179,7 @@ module.exports = "It works";
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

Expand All @@ -193,7 +193,7 @@ __webpack_require__(/*! bundle-loader!./file.js */ 1)(function(fileJsExports) {
/*!******************************************************!*\
!*** (webpack)/node_modules/bundle-loader!./file.js ***!
\******************************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

Expand Down Expand Up @@ -225,7 +225,7 @@ webpackJsonp([0],{
/*!*****************!*\
!*** ./file.js ***!
\*****************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports) {

Expand All @@ -242,9 +242,9 @@ module.exports = "It works";

```
Hash: 0f292e2adbe6929efd48
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.output.js 231 bytes 0 [emitted]
0.output.js 232 bytes 0 [emitted]
output.js 6.73 kB 1 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 28 bytes {1} [rendered]
Expand All @@ -262,7 +262,7 @@ chunk {1} output.js (main) 378 bytes [entry] [rendered]

```
Hash: 0f292e2adbe6929efd48
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.output.js 58 bytes 0 [emitted]
output.js 1.55 kB 1 [emitted] main
Expand Down
18 changes: 9 additions & 9 deletions examples/code-splitting-harmony/README.md
Expand Up @@ -110,7 +110,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/******/ // start chunk loading
/******/ var head = document.getElementsByTagName('head')[0];
/******/ var script = document.createElement('script');
/******/ script.type = 'text/javascript';
/******/ script.type = "text/javascript";
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.timeout = 120000;
Expand Down Expand Up @@ -189,7 +189,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/*!********************!*\
!*** ./example.js ***!
\********************/
/*! exports provided: */
/*! no exports provided */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

Expand Down Expand Up @@ -217,7 +217,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/*!***************************!*\
!*** ./node_modules/a.js ***!
\***************************/
/*! no static exports found */
/*! dynamic exports provided */
/***/ (function(module, exports) {

// module a
Expand All @@ -227,7 +227,7 @@ Promise.all([loadC("1"), loadC("2")]).then(function(arr) {
/*!**************************************!*\
!*** ./node_modules/c lazy ^\.\/.*$ ***!
\**************************************/
/*! no static exports found */
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

Expand Down Expand Up @@ -274,11 +274,11 @@ module.exports = webpackAsyncContext;

```
Hash: f2701c90a6d1597932b5
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.output.js 258 bytes 0 [emitted]
1.output.js 249 bytes 1 [emitted]
2.output.js 244 bytes 2 [emitted]
0.output.js 259 bytes 0 [emitted]
1.output.js 250 bytes 1 [emitted]
2.output.js 245 bytes 2 [emitted]
output.js 7.55 kB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 13 bytes {3} [rendered]
Expand All @@ -301,7 +301,7 @@ chunk {3} output.js (main) 427 bytes [entry] [rendered]

```
Hash: f2701c90a6d1597932b5
Version: webpack 3.5.1
Version: webpack 3.11.0
Asset Size Chunks Chunk Names
0.output.js 37 bytes 0 [emitted]
1.output.js 36 bytes 1 [emitted]
Expand Down

0 comments on commit f010546

Please sign in to comment.