|
| 1 | +# example.js |
| 2 | + |
| 3 | +``` javascript |
| 4 | +console.log(require("../dll/alpha")); |
| 5 | +console.log(require("../dll/a")); |
| 6 | + |
| 7 | +//console.log(require("beta/beta")); |
| 8 | +//console.log(require("beta/b")); |
| 9 | +``` |
| 10 | + |
| 11 | +# js/output.js |
| 12 | + |
| 13 | +``` javascript |
| 14 | +/******/ (function(modules) { // webpackBootstrap |
| 15 | +/******/ // The module cache |
| 16 | +/******/ var installedModules = {}; |
| 17 | + |
| 18 | +/******/ // The require function |
| 19 | +/******/ function __webpack_require__(moduleId) { |
| 20 | + |
| 21 | +/******/ // Check if module is in cache |
| 22 | +/******/ if(installedModules[moduleId]) |
| 23 | +/******/ return installedModules[moduleId].exports; |
| 24 | + |
| 25 | +/******/ // Create a new module (and put it into the cache) |
| 26 | +/******/ var module = installedModules[moduleId] = { |
| 27 | +/******/ exports: {}, |
| 28 | +/******/ id: moduleId, |
| 29 | +/******/ loaded: false |
| 30 | +/******/ }; |
| 31 | + |
| 32 | +/******/ // Execute the module function |
| 33 | +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
| 34 | + |
| 35 | +/******/ // Flag the module as loaded |
| 36 | +/******/ module.loaded = true; |
| 37 | + |
| 38 | +/******/ // Return the exports of the module |
| 39 | +/******/ return module.exports; |
| 40 | +/******/ } |
| 41 | + |
| 42 | + |
| 43 | +/******/ // expose the modules object (__webpack_modules__) |
| 44 | +/******/ __webpack_require__.m = modules; |
| 45 | + |
| 46 | +/******/ // expose the module cache |
| 47 | +/******/ __webpack_require__.c = installedModules; |
| 48 | + |
| 49 | +/******/ // __webpack_public_path__ |
| 50 | +/******/ __webpack_require__.p = "js/"; |
| 51 | + |
| 52 | +/******/ // Load entry module and return exports |
| 53 | +/******/ return __webpack_require__(0); |
| 54 | +/******/ }) |
| 55 | +/************************************************************************/ |
| 56 | +/******/ ([ |
| 57 | +/* 0 */ |
| 58 | +/*!********************!*\ |
| 59 | + !*** ./example.js ***! |
| 60 | + \********************/ |
| 61 | +/***/ function(module, exports, __webpack_require__) { |
| 62 | + |
| 63 | + console.log(__webpack_require__(/*! ../dll/alpha */ 1)); |
| 64 | + console.log(__webpack_require__(/*! ../dll/a */ 3)); |
| 65 | + |
| 66 | + //console.log(require("beta/beta")); |
| 67 | + //console.log(require("beta/b")); |
| 68 | + |
| 69 | + |
| 70 | +/***/ }, |
| 71 | +/* 1 */ |
| 72 | +/*!*****************************************************************!*\ |
| 73 | + !*** delegated 1 from dll-reference alpha_fda802f3c408a66ef744 ***! |
| 74 | + \*****************************************************************/ |
| 75 | +/***/ function(module, exports, __webpack_require__) { |
| 76 | + |
| 77 | + module.exports = (__webpack_require__(2))(1); |
| 78 | + |
| 79 | +/***/ }, |
| 80 | +/* 2 */ |
| 81 | +/*!*********************************************!*\ |
| 82 | + !*** external "alpha_fda802f3c408a66ef744" ***! |
| 83 | + \*********************************************/ |
| 84 | +/***/ function(module, exports, __webpack_require__) { |
| 85 | + |
| 86 | + module.exports = alpha_fda802f3c408a66ef744; |
| 87 | + |
| 88 | +/***/ }, |
| 89 | +/* 3 */ |
| 90 | +/*!*****************************************************************!*\ |
| 91 | + !*** delegated 2 from dll-reference alpha_fda802f3c408a66ef744 ***! |
| 92 | + \*****************************************************************/ |
| 93 | +/***/ function(module, exports, __webpack_require__) { |
| 94 | + |
| 95 | + module.exports = (__webpack_require__(2))(2); |
| 96 | + |
| 97 | +/***/ } |
| 98 | +/******/ ]); |
| 99 | +``` |
| 100 | + |
| 101 | +# Info |
| 102 | + |
| 103 | +## Uncompressed |
| 104 | + |
| 105 | +``` |
| 106 | +Hash: 08ef761d3df9cb02c0ab |
| 107 | +Version: webpack 1.9.5 |
| 108 | +Time: 43ms |
| 109 | + Asset Size Chunks Chunk Names |
| 110 | +output.js 2.62 kB 0 [emitted] main |
| 111 | +chunk {0} output.js (main) 275 bytes [rendered] |
| 112 | + > main [0] ./example.js |
| 113 | + [0] ./example.js 149 bytes {0} [built] |
| 114 | + + 3 hidden modules |
| 115 | +``` |
| 116 | + |
| 117 | +## Minimized (uglify-js, no zip) |
| 118 | + |
| 119 | +``` |
| 120 | +Hash: c02a95197e755bb65192 |
| 121 | +Version: webpack 1.9.5 |
| 122 | +Time: 107ms |
| 123 | + Asset Size Chunks Chunk Names |
| 124 | +output.js 382 bytes 0 [emitted] main |
| 125 | +chunk {0} output.js (main) 275 bytes [rendered] |
| 126 | + > main [0] ./example.js |
| 127 | + [0] ./example.js 149 bytes {0} [built] |
| 128 | + + 3 hidden modules |
| 129 | +``` |
0 commit comments