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
229235output.js 6.16 kB 0 [emitted] main
230236Entrypoint 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
256262Entrypoint 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+ ```
0 commit comments