dll.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. var dll =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, {
  41. /******/ configurable: false,
  42. /******/ enumerable: true,
  43. /******/ get: getter
  44. /******/ });
  45. /******/ }
  46. /******/ };
  47. /******/
  48. /******/ // getDefaultExport function for compatibility with non-harmony modules
  49. /******/ __webpack_require__.n = function(module) {
  50. /******/ var getter = module && module.__esModule ?
  51. /******/ function getDefault() { return module['default']; } :
  52. /******/ function getModuleExports() { return module; };
  53. /******/ __webpack_require__.d(getter, 'a', getter);
  54. /******/ return getter;
  55. /******/ };
  56. /******/
  57. /******/ // Object.prototype.hasOwnProperty.call
  58. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  59. /******/
  60. /******/ // __webpack_public_path__
  61. /******/ __webpack_require__.p = "";
  62. /******/
  63. /******/ // Load entry module and return exports
  64. /******/ return __webpack_require__(__webpack_require__.s = 0);
  65. /******/ })
  66. /************************************************************************/
  67. /******/ ([
  68. /* 0 */
  69. /***/ (function(module, exports, __webpack_require__) {
  70. module.exports = __webpack_require__;
  71. /***/ }),
  72. /* 1 */
  73. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  74. "use strict";
  75. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  76. /* harmony export (immutable) */ __webpack_exports__["dll"] = dll;
  77. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__ = __webpack_require__(2);
  78. // => {id string, width: string, height: string, viewBox: string, url: string}
  79. console.log(`dll: ${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["default"]}`);
  80. let image;
  81. let usage;
  82. window.addEventListener('DOMContentLoaded', () => {
  83. image = `<img width="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["default"].width}" height="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["default"].height}" src="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["default"].url}">`;
  84. usage = `<svg viewBox="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["default"].viewBox}"><use xlink:href="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["default"].url}"></use></svg>`;
  85. });
  86. function dll() {
  87. console.log('dll module');
  88. document.body.insertAdjacentHTML('beforeend', `${image} ${usage}`);
  89. }
  90. /***/ }),
  91. /* 2 */
  92. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  93. "use strict";
  94. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  95. /* harmony default export */ __webpack_exports__["default"] = ({
  96. id: "facebook-usage",
  97. viewBox: "0 0 1000 1000",
  98. url: __webpack_require__.p + "dll.svg#facebook-usage",
  99. toString: function () {
  100. return this.url;
  101. }
  102. });
  103. /***/ })
  104. /******/ ]);