Skip to content

Commit

Permalink
chore(examples): update README of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Apr 3, 2019
1 parent 1a63b4a commit 4c98775
Show file tree
Hide file tree
Showing 45 changed files with 439 additions and 886 deletions.
4 changes: 2 additions & 2 deletions examples/aggressive-merging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = {

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.chunk.js 5.96 KiB 0 [emitted]
4.chunk.js 405 bytes 4 [emitted]
Expand Down Expand Up @@ -108,7 +108,7 @@ chunk {4} 4.chunk.js 42 bytes <{3}> [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.chunk.js 173 bytes 0, 4 [emitted]
4.chunk.js 118 bytes 4 [emitted]
Expand Down
4 changes: 2 additions & 2 deletions examples/chunkhash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ __webpack_require__.e(/*! import() */ 3).then(__webpack_require__.t.bind(null, /

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
2.[chunkhash].js 269 bytes 2 [emitted]
3.[chunkhash].js 263 bytes 3 [emitted]
Expand All @@ -338,7 +338,7 @@ chunk {3} 3.[chunkhash].js 28 bytes <{0}> <{1}> [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
2.[chunkhash].js 77 bytes 2 [emitted]
3.[chunkhash].js 78 bytes 3 [emitted]
Expand Down
13 changes: 6 additions & 7 deletions examples/code-splitted-require.context-amd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,12 @@ function webpackContext(req) {
return __webpack_require__(id);
}
function webpackContextResolve(req) {
var id = map[req];
if(!(id + 1)) { // check for number or string
if(!__webpack_require__.o(map, req)) {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
}
return id;
return map[req];
}
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
Expand Down Expand Up @@ -334,9 +333,9 @@ module.exports = function() {

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
1.output.js 1.83 KiB 1 [emitted]
1.output.js 1.81 KiB 1 [emitted]
output.js 8.41 KiB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 251 bytes >{1}< [entry] [rendered]
Expand All @@ -362,9 +361,9 @@ chunk {1} 1.output.js 457 bytes <{0}> [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
1.output.js 626 bytes 1 [emitted]
1.output.js 621 bytes 1 [emitted]
output.js 2.12 KiB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 251 bytes >{1}< [entry] [rendered]
Expand Down
13 changes: 6 additions & 7 deletions examples/code-splitted-require.context/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,12 @@ function webpackContext(req) {
return __webpack_require__(id);
}
function webpackContextResolve(req) {
var id = map[req];
if(!(id + 1)) { // check for number or string
if(!__webpack_require__.o(map, req)) {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
}
return id;
return map[req];
}
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
Expand Down Expand Up @@ -334,9 +333,9 @@ module.exports = function() {

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
1.output.js 1.83 KiB 1 [emitted]
1.output.js 1.81 KiB 1 [emitted]
output.js 8.35 KiB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 266 bytes >{1}< [entry] [rendered]
Expand All @@ -362,9 +361,9 @@ chunk {1} 1.output.js 457 bytes <{0}> [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
1.output.js 626 bytes 1 [emitted]
1.output.js 621 bytes 1 [emitted]
output.js 2.1 KiB 0 [emitted] main
Entrypoint main = output.js
chunk {0} output.js (main) 266 bytes >{1}< [entry] [rendered]
Expand Down
4 changes: 2 additions & 2 deletions examples/code-splitting-bundle-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ module.exports = "It works";

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
1.output.js 257 bytes 1 [emitted]
output.js 8.78 KiB 0 [emitted] main
Expand All @@ -311,7 +311,7 @@ chunk {1} 1.output.js 28 bytes <{0}> [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
1.output.js 98 bytes 1 [emitted]
output.js 2.16 KiB 0 [emitted] main
Expand Down
14 changes: 7 additions & 7 deletions examples/code-splitting-harmony/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,16 @@ var map = {
]
};
function webpackAsyncContext(req) {
var ids = map[req];
if(!ids) {
if(!__webpack_require__.o(map, req)) {
return Promise.resolve().then(function() {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}

var ids = map[req], id = ids[0];
return __webpack_require__.e(ids[1]).then(function() {
var id = ids[0];
return __webpack_require__.t(id, 7);
});
}
Expand All @@ -329,12 +329,12 @@ module.exports = webpackAsyncContext;

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.output.js 275 bytes 0 [emitted]
1.output.js 284 bytes 1 [emitted]
3.output.js 270 bytes 3 [emitted]
output.js 9.7 KiB 2 [emitted] main
output.js 9.72 KiB 2 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 13 bytes <{2}> [rendered]
> ./1 [4] ./node_modules/c lazy ^\.\/.*$ namespace object ./1
Expand All @@ -361,12 +361,12 @@ chunk {3} 3.output.js 11 bytes <{2}> [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.output.js 76 bytes 0 [emitted]
1.output.js 77 bytes 1 [emitted]
3.output.js 78 bytes 3 [emitted]
output.js 2.52 KiB 2 [emitted] main
output.js 2.53 KiB 2 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 13 bytes <{2}> [rendered]
> ./1 [4] ./node_modules/c lazy ^\.\/.*$ namespace object ./1
Expand Down
14 changes: 7 additions & 7 deletions examples/code-splitting-native-import-context-filter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,16 +316,16 @@ var map = {
]
};
function webpackAsyncContext(req) {
var ids = map[req];
if(!ids) {
if(!__webpack_require__.o(map, req)) {
return Promise.resolve().then(function() {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}

var ids = map[req], id = ids[0];
return __webpack_require__.e(ids[1]).then(function() {
var id = ids[0];
return __webpack_require__(id);
});
}
Expand All @@ -345,12 +345,12 @@ module.exports = webpackAsyncContext;

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.output.js 433 bytes 0 [emitted]
1.output.js 442 bytes 1 [emitted]
2.output.js 436 bytes 2 [emitted]
output.js 9.43 KiB 3 [emitted] main
output.js 9.45 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 38 bytes <{3}> [rendered]
> ./bar [4] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
Expand Down Expand Up @@ -385,12 +385,12 @@ chunk {3} output.js (main) 597 bytes >{0}< >{1}< >{2}< [entry] [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.output.js 113 bytes 0 [emitted]
1.output.js 114 bytes 1 [emitted]
2.output.js 115 bytes 2 [emitted]
output.js 2.51 KiB 3 [emitted] main
output.js 2.52 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 38 bytes <{3}> [rendered]
> ./bar [4] ./templates lazy ^\.\/.*$ include: \.js$ exclude: \.noimport\.js$ namespace object ./bar
Expand Down
14 changes: 7 additions & 7 deletions examples/code-splitting-native-import-context/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,16 @@ var map = {
]
};
function webpackAsyncContext(req) {
var ids = map[req];
if(!ids) {
if(!__webpack_require__.o(map, req)) {
return Promise.resolve().then(function() {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}

var ids = map[req], id = ids[0];
return __webpack_require__.e(ids[1]).then(function() {
var id = ids[0];
return __webpack_require__(id);
});
}
Expand All @@ -332,12 +332,12 @@ module.exports = webpackAsyncContext;

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.output.js 433 bytes 0 [emitted]
1.output.js 442 bytes 1 [emitted]
2.output.js 436 bytes 2 [emitted]
output.js 9.24 KiB 3 [emitted] main
output.js 9.26 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 38 bytes <{3}> [rendered]
> ./bar [4] ./templates lazy ^\.\/.*$ namespace object ./bar
Expand Down Expand Up @@ -372,12 +372,12 @@ chunk {3} output.js (main) 441 bytes >{0}< >{1}< >{2}< [entry] [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.output.js 113 bytes 0 [emitted]
1.output.js 114 bytes 1 [emitted]
2.output.js 115 bytes 2 [emitted]
output.js 2.47 KiB 3 [emitted] main
output.js 2.49 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js 38 bytes <{3}> [rendered]
> ./bar [4] ./templates lazy ^\.\/.*$ namespace object ./bar
Expand Down
14 changes: 7 additions & 7 deletions examples/code-splitting-specify-chunk-name/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,16 +295,16 @@ var map = {
]
};
function webpackAsyncContext(req) {
var ids = map[req];
if(!ids) {
if(!__webpack_require__.o(map, req)) {
return Promise.resolve().then(function() {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}

var ids = map[req], id = ids[0];
return __webpack_require__.e(ids[1]).then(function() {
var id = ids[0];
return __webpack_require__(id);
});
}
Expand All @@ -324,12 +324,12 @@ module.exports = webpackAsyncContext;

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.output.js 442 bytes 0 [emitted] chunk-bar-baz0
1.output.js 436 bytes 1 [emitted] chunk-bar-baz2
2.output.js 433 bytes 2 [emitted] chunk-foo
output.js 9.44 KiB 3 [emitted] main
output.js 9.46 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (chunk-bar-baz0) 38 bytes <{3}> [rendered]
> ./bar [4] ./templates lazy ^\.\/ba.*$ namespace object ./bar
Expand Down Expand Up @@ -364,12 +364,12 @@ chunk {3} output.js (main) 565 bytes >{0}< >{1}< >{2}< [entry] [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
0.output.js 114 bytes 0 [emitted] chunk-bar-baz0
1.output.js 115 bytes 1 [emitted] chunk-bar-baz2
2.output.js 113 bytes 2 [emitted] chunk-foo
output.js 2.49 KiB 3 [emitted] main
output.js 2.51 KiB 3 [emitted] main
Entrypoint main = output.js
chunk {0} 0.output.js (chunk-bar-baz0) 38 bytes <{3}> [rendered]
> ./bar [4] ./templates lazy ^\.\/ba.*$ namespace object ./bar
Expand Down
4 changes: 2 additions & 2 deletions examples/code-splitting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ Minimized

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
1.output.js 490 bytes 1 [emitted]
output.js 8.69 KiB 0 [emitted] main
Expand All @@ -344,7 +344,7 @@ chunk {1} 1.output.js 22 bytes <{0}> [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
1.output.js 95 bytes 1 [emitted]
output.js 2.05 KiB 0 [emitted] main
Expand Down
4 changes: 2 additions & 2 deletions examples/coffee-script/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ module.exports = 42;

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
output.js 4.31 KiB 0 [emitted] main
Entrypoint main = output.js
Expand All @@ -187,7 +187,7 @@ chunk {0} output.js (main) 206 bytes [entry] [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
output.js 1.07 KiB 0 [emitted] main
Entrypoint main = output.js
Expand Down
4 changes: 2 additions & 2 deletions examples/common-chunk-and-vendor-chunk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ module.exports = "pageC";

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
commons~pageA~pageB~pageC.js 269 bytes 2 [emitted] commons~pageA~pageB~pageC
commons~pageB~pageC.js 269 bytes 4 [emitted] commons~pageB~pageC
Expand Down Expand Up @@ -740,7 +740,7 @@ chunk {5} pageC.js (pageC) 102 bytes ={2}= ={4}= [entry] [rendered]

```
Hash: 0a1b2c3d4e5f6a7b8c9d
Version: webpack 4.29.0
Version: webpack 4.29.6
Asset Size Chunks Chunk Names
commons~pageA~pageB~pageC.js 96 bytes 0 [emitted] commons~pageA~pageB~pageC
commons~pageB~pageC.js 97 bytes 1 [emitted] commons~pageB~pageC
Expand Down
Loading

0 comments on commit 4c98775

Please sign in to comment.