Skip to content

Commit 1c5f3bf

Browse files
authored
Merge pull request webpack#4748 from aretecode/examples-dll-readme-update2
examples/dll readme updates
2 parents cbd4939 + f223aec commit 1c5f3bf

File tree

4 files changed

+46
-20
lines changed

4 files changed

+46
-20
lines changed

examples/dll-user/README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# DllUser
2+
3+
[DllPlugin documentation](https://webpack.js.org/plugins/dll-plugin)
4+
5+
This is the _user_ bundle, which uses the manifest from [dll-reference example](https://github.com/webpack/webpack/tree/master/examples/dll)
6+
17
# webpack.config.js
28

39
``` javascript
@@ -44,9 +50,9 @@ console.log(require("module"));
4450
/******/ function __webpack_require__(moduleId) {
4551
/******/
4652
/******/ // Check if module is in cache
47-
/******/ if(installedModules[moduleId])
53+
/******/ if(installedModules[moduleId]) {
4854
/******/ return installedModules[moduleId].exports;
49-
/******/
55+
/******/ }
5056
/******/ // Create a new module (and put it into the cache)
5157
/******/ var module = installedModules[moduleId] = {
5258
/******/ i: moduleId,
@@ -223,12 +229,12 @@ console.log(__webpack_require__(/*! module */ 7));
223229
## Uncompressed
224230

225231
```
226-
Hash: 164f3c4abb86bb4c4462
227-
Version: webpack 2.3.2
232+
Hash: 31b432da9b9102c24f82
233+
Version: webpack 2.4.1
228234
Asset Size Chunks Chunk Names
229235
output.js 6.16 kB 0 [emitted] main
230236
Entrypoint main = output.js
231-
chunk {0} output.js (main) 549 bytes [entry] [rendered]
237+
chunk {0} output.js (main) 541 bytes [entry] [rendered]
232238
> main [8] ./example.js
233239
[2] delegated ./a.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
234240
cjs require ../dll/a [8] ./example.js 2:12-31
@@ -242,19 +248,19 @@ chunk {0} output.js (main) 549 bytes [entry] [rendered]
242248
cjs require beta/c [8] ./example.js 6:12-29
243249
[7] delegated ../node_modules/module.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
244250
cjs require module [8] ./example.js 8:12-29
245-
[8] ./example.js 213 bytes {0} [built]
251+
[8] ./example.js 205 bytes {0} [built]
246252
+ 2 hidden modules
247253
```
248254

249255
## Minimized (uglify-js, no zip)
250256

251257
```
252-
Hash: 164f3c4abb86bb4c4462
253-
Version: webpack 2.3.2
258+
Hash: 31b432da9b9102c24f82
259+
Version: webpack 2.4.1
254260
Asset Size Chunks Chunk Names
255-
output.js 937 bytes 0 [emitted] main
261+
output.js 930 bytes 0 [emitted] main
256262
Entrypoint main = output.js
257-
chunk {0} output.js (main) 549 bytes [entry] [rendered]
263+
chunk {0} output.js (main) 541 bytes [entry] [rendered]
258264
> main [8] ./example.js
259265
[2] delegated ./a.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
260266
cjs require ../dll/a [8] ./example.js 2:12-31
@@ -268,6 +274,6 @@ chunk {0} output.js (main) 549 bytes [entry] [rendered]
268274
cjs require beta/c [8] ./example.js 6:12-29
269275
[7] delegated ../node_modules/module.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
270276
cjs require module [8] ./example.js 8:12-29
271-
[8] ./example.js 213 bytes {0} [built]
277+
[8] ./example.js 205 bytes {0} [built]
272278
+ 2 hidden modules
273-
```
279+
```

examples/dll-user/template.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# DllUser
2+
3+
[DllPlugin documentation](https://webpack.js.org/plugins/dll-plugin)
4+
5+
This is the _user_ bundle, which uses the manifest from [dll-reference example](https://github.com/webpack/webpack/tree/master/examples/dll)
6+
17
# webpack.config.js
28

39
``` javascript
@@ -28,4 +34,4 @@
2834

2935
```
3036
{{min:stdout}}
31-
```
37+
```

examples/dll/README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# DllReference
2+
3+
[DllPlugin documentation](https://webpack.js.org/plugins/dll-plugin)
4+
5+
This is the _reference_ bundle (with the manifests) for [dll user example](https://github.com/webpack/webpack/tree/master/examples/dll-user)
6+
7+
18
# webpack.config.js
29

310
``` javascript
@@ -41,9 +48,9 @@ var alpha_282e8826843b2bb4eeb1 =
4148
/******/ function __webpack_require__(moduleId) {
4249
/******/
4350
/******/ // Check if module is in cache
44-
/******/ if(installedModules[moduleId])
51+
/******/ if(installedModules[moduleId]) {
4552
/******/ return installedModules[moduleId].exports;
46-
/******/
53+
/******/ }
4754
/******/ // Create a new module (and put it into the cache)
4855
/******/ var module = installedModules[moduleId] = {
4956
/******/ i: moduleId,
@@ -185,9 +192,9 @@ module.exports = __webpack_require__;
185192

186193
```
187194
Hash: 282e8826843b2bb4eeb1
188-
Version: webpack 2.3.2
195+
Version: webpack 2.4.1
189196
Asset Size Chunks Chunk Names
190-
MyDll.beta.js 3.46 kB 0 [emitted] beta
197+
MyDll.beta.js 3.47 kB 0 [emitted] beta
191198
MyDll.alpha.js 3.49 kB 1 [emitted] alpha
192199
Entrypoint alpha = MyDll.alpha.js
193200
Entrypoint beta = MyDll.beta.js
@@ -215,7 +222,7 @@ chunk {1} MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
215222

216223
```
217224
Hash: 282e8826843b2bb4eeb1
218-
Version: webpack 2.3.2
225+
Version: webpack 2.4.1
219226
Asset Size Chunks Chunk Names
220227
MyDll.beta.js 653 bytes 0 [emitted] beta
221228
MyDll.alpha.js 657 bytes 1 [emitted] alpha
@@ -239,4 +246,4 @@ chunk {1} MyDll.alpha.js (alpha) 84 bytes [entry] [rendered]
239246
[5] ../~/module.js 26 bytes {1} [built]
240247
single entry module [6] dll alpha alpha:2
241248
[6] dll alpha 12 bytes {1} [built]
242-
```
249+
```

examples/dll/template.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# DllReference
2+
3+
[DllPlugin documentation](https://webpack.js.org/plugins/dll-plugin)
4+
5+
This is the _reference_ bundle (with the manifests) for [dll user example](https://github.com/webpack/webpack/tree/master/examples/dll-user)
6+
7+
18
# webpack.config.js
29

310
``` javascript
@@ -28,4 +35,4 @@
2835

2936
```
3037
{{min:stdout}}
31-
```
38+
```

0 commit comments

Comments
 (0)