Skip to content

Commit a1b917e

Browse files
committed
🆙 updated dll example descriptions on dll-user
1 parent 1670467 commit a1b917e

File tree

2 files changed

+35
-23
lines changed

2 files changed

+35
-23
lines changed

examples/dll-user/README.md

Lines changed: 28 additions & 22 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
@@ -7,11 +13,11 @@ module.exports = {
713
plugins: [
814
new webpack.DllReferencePlugin({
915
context: path.join(__dirname, "..", "dll"),
10-
manifest: require("../dll/js/alpha-manifest.json") // eslint-disable-line
16+
manifest: require("../dll/js/alpha-manifest.json")
1117
}),
1218
new webpack.DllReferencePlugin({
1319
scope: "beta",
14-
manifest: require("../dll/js/beta-manifest.json"), // eslint-disable-line
20+
manifest: require("../dll/js/beta-manifest.json"),
1521
extensions: [".js", ".jsx"]
1622
})
1723
]
@@ -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,
@@ -138,7 +144,7 @@ module.exports = beta_282e8826843b2bb4eeb1;
138144
\**********************************************************************/
139145
/***/ (function(module, exports, __webpack_require__) {
140146

141-
module.exports = (__webpack_require__(0))(0);
147+
module.exports = (__webpack_require__(0))(0)
142148

143149
/***/ }),
144150
/* 3 */
@@ -149,7 +155,7 @@ module.exports = (__webpack_require__(0))(0);
149155
\**************************************************************************/
150156
/***/ (function(module, exports, __webpack_require__) {
151157

152-
module.exports = (__webpack_require__(0))(1);
158+
module.exports = (__webpack_require__(0))(1)
153159

154160
/***/ }),
155161
/* 4 */
@@ -160,7 +166,7 @@ module.exports = (__webpack_require__(0))(1);
160166
\*********************************************************************/
161167
/***/ (function(module, exports, __webpack_require__) {
162168

163-
module.exports = (__webpack_require__(1))(2);
169+
module.exports = (__webpack_require__(1))(2)
164170

165171
/***/ }),
166172
/* 5 */
@@ -171,7 +177,7 @@ module.exports = (__webpack_require__(1))(2);
171177
\************************************************************************/
172178
/***/ (function(module, exports, __webpack_require__) {
173179

174-
module.exports = (__webpack_require__(1))(3);
180+
module.exports = (__webpack_require__(1))(3)
175181

176182
/***/ }),
177183
/* 6 */
@@ -182,7 +188,7 @@ module.exports = (__webpack_require__(1))(3);
182188
\**********************************************************************/
183189
/***/ (function(module, exports, __webpack_require__) {
184190

185-
module.exports = (__webpack_require__(1))(4);
191+
module.exports = (__webpack_require__(1))(4)
186192

187193
/***/ }),
188194
/* 7 */
@@ -193,7 +199,7 @@ module.exports = (__webpack_require__(1))(4);
193199
\*****************************************************************************************/
194200
/***/ (function(module, exports, __webpack_require__) {
195201

196-
module.exports = (__webpack_require__(0))(5);
202+
module.exports = (__webpack_require__(0))(5)
197203

198204
/***/ }),
199205
/* 8 */
@@ -223,13 +229,13 @@ 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]
232-
> main [8] ./example.js
237+
chunk {0} output.js (main) 541 bytes [entry] [rendered]
238+
> 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
235241
[3] delegated ./alpha.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
@@ -242,20 +248,20 @@ 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]
258-
> main [8] ./example.js
263+
chunk {0} output.js (main) 541 bytes [entry] [rendered]
264+
> 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
261267
[3] delegated ./alpha.js from dll-reference alpha_282e8826843b2bb4eeb1 42 bytes {0} [not cacheable] [built]
@@ -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+
```

0 commit comments

Comments
 (0)