Skip to content

Commit afd8e11

Browse files
author
杨益良
committed
add dist
1 parent 26f6973 commit afd8e11

22 files changed

+1628
-0
lines changed

example1/dist/codeSplit/1.1.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
webpackJsonp([1],{
2+
3+
/***/ 4:
4+
/***/ function(module, exports) {
5+
6+
console.log("c.js");
7+
module.exports = {
8+
name: 'cmodule'
9+
}
10+
11+
/***/ }
12+
13+
});

example1/dist/codeSplit/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Document</title>
6+
</head>
7+
<body>
8+
<input type="button" id="asyncExcute" value="test code split"/>
9+
<script type="text/javascript" src="index.js"></script></body>
10+
</html>

example1/dist/codeSplit/index.js

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
/******/ (function(modules) { // webpackBootstrap
2+
/******/ // install a JSONP callback for chunk loading
3+
/******/ var parentJsonpFunction = window["webpackJsonp"];
4+
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
5+
/******/ // add "moreModules" to the modules object,
6+
/******/ // then flag all "chunkIds" as loaded and fire callback
7+
/******/ var moduleId, chunkId, i = 0, callbacks = [];
8+
/******/ for(;i < chunkIds.length; i++) {
9+
/******/ chunkId = chunkIds[i];
10+
/******/ if(installedChunks[chunkId])
11+
/******/ callbacks.push.apply(callbacks, installedChunks[chunkId]);
12+
/******/ installedChunks[chunkId] = 0;
13+
/******/ }
14+
/******/ for(moduleId in moreModules) {
15+
/******/ modules[moduleId] = moreModules[moduleId];
16+
/******/ }
17+
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
18+
/******/ while(callbacks.length)
19+
/******/ callbacks.shift().call(null, __webpack_require__);
20+
21+
/******/ };
22+
23+
/******/ // The module cache
24+
/******/ var installedModules = {};
25+
26+
/******/ // object to store loaded and loading chunks
27+
/******/ // "0" means "already loaded"
28+
/******/ // Array means "loading", array contains callbacks
29+
/******/ var installedChunks = {
30+
/******/ 0:0
31+
/******/ };
32+
33+
/******/ // The require function
34+
/******/ function __webpack_require__(moduleId) {
35+
36+
/******/ // Check if module is in cache
37+
/******/ if(installedModules[moduleId])
38+
/******/ return installedModules[moduleId].exports;
39+
40+
/******/ // Create a new module (and put it into the cache)
41+
/******/ var module = installedModules[moduleId] = {
42+
/******/ exports: {},
43+
/******/ id: moduleId,
44+
/******/ loaded: false
45+
/******/ };
46+
47+
/******/ // Execute the module function
48+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
49+
50+
/******/ // Flag the module as loaded
51+
/******/ module.loaded = true;
52+
53+
/******/ // Return the exports of the module
54+
/******/ return module.exports;
55+
/******/ }
56+
57+
/******/ // This file contains only the entry chunk.
58+
/******/ // The chunk loading function for additional chunks
59+
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
60+
/******/ // "0" is the signal for "already loaded"
61+
/******/ if(installedChunks[chunkId] === 0)
62+
/******/ return callback.call(null, __webpack_require__);
63+
64+
/******/ // an array means "currently loading".
65+
/******/ if(installedChunks[chunkId] !== undefined) {
66+
/******/ installedChunks[chunkId].push(callback);
67+
/******/ } else {
68+
/******/ // start chunk loading
69+
/******/ installedChunks[chunkId] = [callback];
70+
/******/ var head = document.getElementsByTagName('head')[0];
71+
/******/ var script = document.createElement('script');
72+
/******/ script.type = 'text/javascript';
73+
/******/ script.charset = 'utf-8';
74+
/******/ script.async = true;
75+
76+
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({}[chunkId]||chunkId) + ".js";
77+
/******/ head.appendChild(script);
78+
/******/ }
79+
/******/ };
80+
81+
/******/ // expose the modules object (__webpack_modules__)
82+
/******/ __webpack_require__.m = modules;
83+
84+
/******/ // expose the module cache
85+
/******/ __webpack_require__.c = installedModules;
86+
87+
/******/ // __webpack_public_path__
88+
/******/ __webpack_require__.p = "";
89+
90+
/******/ // Load entry module and return exports
91+
/******/ return __webpack_require__(0);
92+
/******/ })
93+
/************************************************************************/
94+
/******/ ([
95+
/* 0 */
96+
/***/ function(module, exports, __webpack_require__) {
97+
98+
module.exports = __webpack_require__(1);
99+
100+
101+
/***/ },
102+
/* 1 */
103+
/***/ function(module, exports, __webpack_require__) {
104+
105+
__webpack_require__(2);
106+
__webpack_require__(3);
107+
108+
document.getElementById('asyncExcute').addEventListener('click',function () {
109+
__webpack_require__.e/* nsure */(1, function () {
110+
var c = __webpack_require__(4);
111+
alert(c.name);
112+
})
113+
})
114+
115+
116+
/***/ },
117+
/* 2 */
118+
/***/ function(module, exports) {
119+
120+
console.log("a.js");
121+
122+
/***/ },
123+
/* 3 */
124+
/***/ function(module, exports) {
125+
126+
console.log("b.js");
127+
128+
/***/ }
129+
/******/ ]);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
webpackJsonp([0],[
2+
/* 0 */
3+
/***/ function(module, exports, __webpack_require__) {
4+
5+
module.exports = __webpack_require__(1);
6+
7+
8+
/***/ }
9+
]);

example1/dist/dist5/UIStuff.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
webpackJsonp([0],[
2+
/* 0 */
3+
/***/ function(module, exports, __webpack_require__) {
4+
5+
module.exports = __webpack_require__(1);
6+
7+
8+
/***/ }
9+
]);
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
/******/ (function(modules) { // webpackBootstrap
2+
/******/ // install a JSONP callback for chunk loading
3+
/******/ var parentJsonpFunction = window["webpackJsonp"];
4+
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
5+
/******/ // add "moreModules" to the modules object,
6+
/******/ // then flag all "chunkIds" as loaded and fire callback
7+
/******/ var moduleId, chunkId, i = 0, callbacks = [];
8+
/******/ for(;i < chunkIds.length; i++) {
9+
/******/ chunkId = chunkIds[i];
10+
/******/ if(installedChunks[chunkId])
11+
/******/ callbacks.push.apply(callbacks, installedChunks[chunkId]);
12+
/******/ installedChunks[chunkId] = 0;
13+
/******/ }
14+
/******/ for(moduleId in moreModules) {
15+
/******/ modules[moduleId] = moreModules[moduleId];
16+
/******/ }
17+
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
18+
/******/ while(callbacks.length)
19+
/******/ callbacks.shift().call(null, __webpack_require__);
20+
/******/ if(moreModules[0]) {
21+
/******/ installedModules[0] = 0;
22+
/******/ return __webpack_require__(0);
23+
/******/ }
24+
/******/ };
25+
26+
/******/ // The module cache
27+
/******/ var installedModules = {};
28+
29+
/******/ // object to store loaded and loading chunks
30+
/******/ // "0" means "already loaded"
31+
/******/ // Array means "loading", array contains callbacks
32+
/******/ var installedChunks = {
33+
/******/ 2:0
34+
/******/ };
35+
36+
/******/ // The require function
37+
/******/ function __webpack_require__(moduleId) {
38+
39+
/******/ // Check if module is in cache
40+
/******/ if(installedModules[moduleId])
41+
/******/ return installedModules[moduleId].exports;
42+
43+
/******/ // Create a new module (and put it into the cache)
44+
/******/ var module = installedModules[moduleId] = {
45+
/******/ exports: {},
46+
/******/ id: moduleId,
47+
/******/ loaded: false
48+
/******/ };
49+
50+
/******/ // Execute the module function
51+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
52+
53+
/******/ // Flag the module as loaded
54+
/******/ module.loaded = true;
55+
56+
/******/ // Return the exports of the module
57+
/******/ return module.exports;
58+
/******/ }
59+
60+
/******/ // This file contains only the entry chunk.
61+
/******/ // The chunk loading function for additional chunks
62+
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
63+
/******/ // "0" is the signal for "already loaded"
64+
/******/ if(installedChunks[chunkId] === 0)
65+
/******/ return callback.call(null, __webpack_require__);
66+
67+
/******/ // an array means "currently loading".
68+
/******/ if(installedChunks[chunkId] !== undefined) {
69+
/******/ installedChunks[chunkId].push(callback);
70+
/******/ } else {
71+
/******/ // start chunk loading
72+
/******/ installedChunks[chunkId] = [callback];
73+
/******/ var head = document.getElementsByTagName('head')[0];
74+
/******/ var script = document.createElement('script');
75+
/******/ script.type = 'text/javascript';
76+
/******/ script.charset = 'utf-8';
77+
/******/ script.async = true;
78+
79+
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"0":"UIStuff","1":"index"}[chunkId]||chunkId) + "." + "3a7b5f6190ae4215ae4d" + ".js";
80+
/******/ head.appendChild(script);
81+
/******/ }
82+
/******/ };
83+
84+
/******/ // expose the modules object (__webpack_modules__)
85+
/******/ __webpack_require__.m = modules;
86+
87+
/******/ // expose the module cache
88+
/******/ __webpack_require__.c = installedModules;
89+
90+
/******/ // __webpack_public_path__
91+
/******/ __webpack_require__.p = "";
92+
/******/ })
93+
/************************************************************************/
94+
/******/ ([
95+
/* 0 */,
96+
/* 1 */
97+
/***/ function(module, exports, __webpack_require__) {
98+
99+
// var React = require('React')
100+
// React.createClass({
101+
// // stuff
102+
// })
103+
__webpack_require__(2);
104+
console.log('UIStuff');
105+
console.log('UIStuff');
106+
console.log('UIStuff');
107+
console.log('UIStuff');
108+
109+
110+
/***/ },
111+
/* 2 */
112+
/***/ function(module, exports) {
113+
114+
// var fetch = require('fetch') // fetch polyfill
115+
// fetch('https://google.com')
116+
var longnamelongname = 123456;
117+
console.log('APIStuff');
118+
console.log('APIStuff');
119+
console.log('APIStuff');
120+
console.log('APIStuff');
121+
console.log('APIStuff');
122+
console.log('APIStuff');
123+
console.log(longnamelongname);
124+
125+
126+
/***/ }
127+
/******/ ]);

0 commit comments

Comments
 (0)