carry-2017

<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="  ">
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>

<body>
    <script src="./dist/bundle.js"></script>
</body>

</html>
import aa from \'./one.js\'

var num = 256;
console.log(aa(num));
var add100 = function (a) {
    return a * 100;
}

export default add100;
/******/ (function(modules) { // webpackBootstrap
/******/     // The module cache
/******/     var installedModules = {};
/******/
/******/     // The require function
/******/     function __webpack_require__(moduleId) {
/******/
/******/         // Check if module is in cache
/******/         if(installedModules[moduleId]) {
/******/             return installedModules[moduleId].exports;
/******/         }
/******/         // Create a new module (and put it into the cache)
/******/         var module = installedModules[moduleId] = {
/******/             i: moduleId,
/******/             l: false,
/******/             exports: {}
/******/         };
/******/
/******/         // Execute the module function
/******/         modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/         // Flag the module as loaded
/******/         module.l = true;
/******/
/******/         // Return the exports of the module
/******/         return module.exports;
/******/     }
/******/
/******/
/******/     // expose the modules object (__webpack_modules__)
/******/     __webpack_require__.m = modules;
/******/
/******/     // expose the module cache
/******/     __webpack_require__.c = installedModules;
/******/
/******/     // define getter function for harmony exports
/******/     __webpack_require__.d = function(exports, name, getter) {
/******/         if(!__webpack_require__.o(exports, name)) {
/******/             Object.defineProperty(exports, name, {
/******/                 configurable: false,
/******/                 enumerable: true,
/******/                 get: getter
/******/             });
/******/         }
/******/     };
/******/
/******/     // getDefaultExport function for compatibility with non-harmony modules
/******/     __webpack_require__.n = function(module) {
/******/         var getter = module && module.__esModule ?
/******/             function getDefault() { return module[\'default\']; } :
/******/             function getModuleExports() { return module; };
/******/         __webpack_require__.d(getter, \'a\', getter);
/******/         return getter;
/******/     };
/******/
/******/     // Object.prototype.hasOwnProperty.call
/******/     __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/     // __webpack_public_path__
/******/     __webpack_require__.p = "";
/******/
/******/     // Load entry module and return exports
/******/     return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__one_js__ = __webpack_require__(1);


var num = 256;
console.log(Object(__WEBPACK_IMPORTED_MODULE_0__one_js__["a" /* default */])(num));




/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
var add100 = function (a) {
    return a * 100;
}

/* harmony default export */ __webpack_exports__["a"] = (add100);

/***/ })
/******/ ]);

 打包命令:

webpack 要打包的入口文件路径  打包好的文件的存储路径

分类:

技术点:

相关文章:

  • 2021-12-06
  • 2021-12-11
  • 2023-03-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2021-09-16
猜你喜欢
  • 2021-12-14
  • 2021-08-22
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-10-03
  • 2018-05-11
相关资源
相似解决方案