Skip to content

Commit ddd6037

Browse files
committed
多入口讨论
1 parent 9504b91 commit ddd6037

17 files changed

+298
-122
lines changed

dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<meta charset="utf-8">
55
<title>index</title>
66
<link rel="stylesheet" href="static/index.css" charset="utf-8">
7-
<link href="static/index.4a184f9ff0cf1b10e5e4.css" rel="stylesheet"></head>
7+
<link href="static/common.6f8f17725e283267ab2a.css" rel="stylesheet"></head>
88
<body>
99
<div class="style1">hello, world!</div>
1010
<div class="style2">hello, world!</div>
1111
<div class="style3">hello, world!</div>
12-
<script type="text/javascript" src="static/index.4a184f9ff0cf1b10e5e4.js"></script></body>
12+
<script type="text/javascript" src="static/common"></script><script type="text/javascript" src="static/index2.3932ffa99b1e6f8010b0.js"></script><script type="text/javascript" src="static/index.5c2d7c0c447628d2aa8c.js"></script></body>
1313
</html>

dist/static/common

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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":"index","1":"index2"}[chunkId]||chunkId) + "." + {"0":"5c2d7c0c447628d2aa8c","1":"3932ffa99b1e6f8010b0"}[chunkId] + ".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 = "static/";
92+
/******/ })
93+
/************************************************************************/
94+
/******/ ([
95+
/* 0 */,
96+
/* 1 */,
97+
/* 2 */,
98+
/* 3 */
99+
/***/ function(module, exports) {
100+
101+
module.exports = {"name": "util2.js"}
102+
103+
104+
/***/ },
105+
/* 4 */
106+
/***/ function(module, exports) {
107+
108+
// removed by extract-text-webpack-plugin
109+
110+
/***/ }
111+
/******/ ]);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.style1 {
2+
color: red;
3+
}

dist/static/index.4a184f9ff0cf1b10e5e4.css

Lines changed: 0 additions & 9 deletions
This file was deleted.

dist/static/index.4a184f9ff0cf1b10e5e4.js

Lines changed: 0 additions & 100 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
webpackJsonp([0],[
2+
/* 0 */
3+
/***/ function(module, exports, __webpack_require__) {
4+
5+
module.exports = __webpack_require__(1);
6+
7+
8+
/***/ },
9+
/* 1 */
10+
/***/ function(module, exports, __webpack_require__) {
11+
12+
var util1 = __webpack_require__(2)
13+
var util2 = __webpack_require__(3)
14+
var css1 = __webpack_require__(4)
15+
// var css2 = require('../less/style2.less')
16+
17+
18+
/***/ },
19+
/* 2 */
20+
/***/ function(module, exports) {
21+
22+
// var css2 = require('../less/style2.less')
23+
// var css3 = require('../less/style3.less')
24+
// var util2 = require('./util2.js')
25+
module.exports = {"name": "util1.js"}
26+
27+
28+
/***/ }
29+
]);
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
webpackJsonp([1],{
2+
3+
/***/ 0:
4+
/***/ function(module, exports, __webpack_require__) {
5+
6+
module.exports = __webpack_require__(8);
7+
8+
9+
/***/ },
10+
11+
/***/ 8:
12+
/***/ function(module, exports, __webpack_require__) {
13+
14+
var util2 = __webpack_require__(3)
15+
var css1 = __webpack_require__(4)
16+
17+
18+
/***/ }
19+
20+
});

image/img10.gif

18.1 KB
Loading

image/img6.gif

39.2 KB
Loading

image/img7.gif

39.6 KB
Loading

0 commit comments

Comments
 (0)