Merge branch 'master' into webpack-2

This commit is contained in:
Tobias Koppers 2015-06-13 17:47:50 +02:00
commit 41f56a523a
50 changed files with 2559 additions and 2573 deletions

View File

@ -3,6 +3,8 @@ var fs = require("fs");
var fixtures = path.join(__dirname, "fixtures");
try { fs.mkdirSync(fixtures); } catch(e) {}
for(var i = 0; i < 1000; i++) {
var source = [];

View File

@ -152,7 +152,7 @@ ifArg("hide-modules", function(bool) {
var webpack = require("../lib/webpack.js");
Error.stackTrackLimit = 30;
Error.stackTraceLimit = 30;
var lastHash = null;
var compiler = webpack(options);
function compilerCallback(err, stats) {

View File

@ -56,87 +56,87 @@ module.exports = {
## Uncompressed
```
Hash: d79e3f1df7b5b1fce70b
Version: webpack 1.5.0
Time: 76ms
Asset Size Chunks Chunk Names
0.chunk.js 5738 0 [emitted]
pageB.bundle.js 4208 1 [emitted] pageB
pageA.bundle.js 4177 2 [emitted] pageA
3.chunk.js 342 3 [emitted]
pageC.bundle.js 4020 4 [emitted] pageC
chunk {0} 0.chunk.js 5553 {2} {1} [rendered]
Hash: f4216735227bfe40c743
Version: webpack 1.9.10
Time: 89ms
Asset Size Chunks Chunk Names
pageA.bundle.js 4.05 kB 0 [emitted] pageA
1.chunk.js 5.72 kB 1 [emitted]
pageB.bundle.js 4.08 kB 2 [emitted] pageB
pageC.bundle.js 3.9 kB 3 [emitted] pageC
4.chunk.js 309 bytes 4 [emitted]
chunk {0} pageA.bundle.js (pageA) 92 bytes [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 71 bytes {0} [built]
[2] ./a.js 21 bytes {0} {4} [built]
cjs require ./a [0] ./pageA.js 2:8-22
amd require ./a [0] ./pageC.js 1:0-3:2
chunk {1} 1.chunk.js 5.55 kB {0} {2} [rendered]
> [0] ./pageA.js 1:0-3:2
> aggressive-merge [0] ./pageB.js 1:0-3:2
[3] ./common.js 5553 {0} [built]
amd require ./common [0] ./pageA.js 1:0-3:2
[1] ./common.js 5.55 kB {1} [built]
amd require ./common [0] ./pageB.js 1:0-3:2
chunk {1} pageB.bundle.js (pageB) 92 [rendered]
amd require ./common [0] ./pageA.js 1:0-3:2
chunk {2} pageB.bundle.js (pageB) 92 bytes [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 71 {1} [built]
[2] ./b.js 21 {1} {3} [built]
[0] ./pageB.js 71 bytes {2} [built]
[3] ./b.js 21 bytes {2} {4} [built]
cjs require ./b [0] ./pageB.js 2:8-22
cjs require ./b [0] ./pageC.js 2:17-31
chunk {2} pageA.bundle.js (pageA) 92 [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 71 {2} [built]
[1] ./a.js 21 {2} {3} [built]
cjs require ./a [0] ./pageA.js 2:8-22
amd require ./a [0] ./pageC.js 1:0-3:2
chunk {3} 3.chunk.js 42 {4} [rendered]
> [0] ./pageC.js 1:0-3:2
[1] ./a.js 21 {2} {3} [built]
cjs require ./a [0] ./pageA.js 2:8-22
amd require ./a [0] ./pageC.js 1:0-3:2
[2] ./b.js 21 {1} {3} [built]
cjs require ./b [0] ./pageB.js 2:8-22
cjs require ./b [0] ./pageC.js 2:17-31
chunk {4} pageC.bundle.js (pageC) 70 [rendered]
chunk {3} pageC.bundle.js (pageC) 70 bytes [rendered]
> pageC [0] ./pageC.js
[0] ./pageC.js 70 {4} [built]
[0] ./pageC.js 70 bytes {3} [built]
chunk {4} 4.chunk.js 42 bytes {3} [rendered]
> [0] ./pageC.js 1:0-3:2
[2] ./a.js 21 bytes {0} {4} [built]
cjs require ./a [0] ./pageA.js 2:8-22
amd require ./a [0] ./pageC.js 1:0-3:2
[3] ./b.js 21 bytes {2} {4} [built]
cjs require ./b [0] ./pageB.js 2:8-22
cjs require ./b [0] ./pageC.js 2:17-31
```
## Minimized (uglify-js, no zip)
```
Hash: ab85fb8904309de75c02
Version: webpack 1.5.0
Time: 277ms
Asset Size Chunks Chunk Names
0.chunk.js 73 0 [emitted]
pageB.bundle.js 812 1 [emitted] pageB
pageA.bundle.js 811 2 [emitted] pageA
3.chunk.js 75 3 [emitted]
pageC.bundle.js 796 4 [emitted] pageC
chunk {0} 0.chunk.js 5553 {1} {2} [rendered]
> [0] ./pageB.js 1:0-3:2
> aggressive-merge [0] ./pageA.js 1:0-3:2
[3] ./common.js 5553 {0} [built]
Hash: 94cc89f2c74586df40ca
Version: webpack 1.9.10
Time: 328ms
Asset Size Chunks Chunk Names
0.chunk.js 75 bytes 0 [emitted]
pageB.bundle.js 814 bytes 1 [emitted] pageB
pageA.bundle.js 813 bytes 2 [emitted] pageA
3.chunk.js 79 bytes 3 [emitted]
pageC.bundle.js 796 bytes 4 [emitted] pageC
chunk {0} 0.chunk.js 5.55 kB {2} {1} [rendered]
> [0] ./pageA.js 1:0-3:2
> aggressive-merge [0] ./pageB.js 1:0-3:2
[3] ./common.js 5.55 kB {0} [built]
amd require ./common [0] ./pageA.js 1:0-3:2
amd require ./common [0] ./pageB.js 1:0-3:2
chunk {1} pageB.bundle.js (pageB) 92 [rendered]
chunk {1} pageB.bundle.js (pageB) 92 bytes [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 71 {1} [built]
[2] ./b.js 21 {1} {3} [built]
[0] ./pageB.js 71 bytes {1} [built]
[2] ./b.js 21 bytes {1} {3} [built]
cjs require ./b [0] ./pageB.js 2:8-22
cjs require ./b [0] ./pageC.js 2:17-31
chunk {2} pageA.bundle.js (pageA) 92 [rendered]
chunk {2} pageA.bundle.js (pageA) 92 bytes [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 71 {2} [built]
[1] ./a.js 21 {2} {3} [built]
[0] ./pageA.js 71 bytes {2} [built]
[1] ./a.js 21 bytes {2} {3} [built]
cjs require ./a [0] ./pageA.js 2:8-22
amd require ./a [0] ./pageC.js 1:0-3:2
chunk {3} 3.chunk.js 42 {4} [rendered]
chunk {3} 3.chunk.js 42 bytes {4} [rendered]
> [0] ./pageC.js 1:0-3:2
[1] ./a.js 21 {2} {3} [built]
[1] ./a.js 21 bytes {2} {3} [built]
cjs require ./a [0] ./pageA.js 2:8-22
amd require ./a [0] ./pageC.js 1:0-3:2
[2] ./b.js 21 {1} {3} [built]
[2] ./b.js 21 bytes {1} {3} [built]
cjs require ./b [0] ./pageB.js 2:8-22
cjs require ./b [0] ./pageC.js 2:17-31
chunk {4} pageC.bundle.js (pageC) 70 [rendered]
chunk {4} pageC.bundle.js (pageC) 70 bytes [rendered]
> pageC [0] ./pageC.js
[0] ./pageC.js 70 {4} [built]
[0] ./pageC.js 70 bytes {4} [built]
WARNING in 0.chunk.js from UglifyJs
Dropping unused variable justToBeABigFile [./common.js:4,0]

View File

@ -10,20 +10,25 @@ var extraArgs = "";
var targetArgs = global.NO_TARGET_ARGS ? "" : " ./example.js js/output.js";
var displayReasons = global.NO_REASONS ? "" : " --display-reasons";
cp.exec("node ../../bin/webpack.js" + displayReasons + " --display-chunks --display-modules --display-origins --output-public-path \"js/\" -p " + extraArgs + targetArgs, function (error, stdout, stderr) {
if(stderr)
console.log(stderr);
if (error !== null)
console.log(error);
var readme = tc(fs.readFileSync(require("path").join(process.cwd(), "template.md"), "utf-8"), process.cwd(), stdout.replace(/[\r\n]*$/, ""), "min");
cp.exec("node ../../bin/webpack.js" + displayReasons + " --display-chunks --display-modules --display-origins --output-public-path \"js/\" --output-pathinfo " + extraArgs + targetArgs, function (error, stdout, stderr) {
console.log(stdout);
if(stderr)
(function doIt(remainingTimes) {
cp.exec("node ../../bin/webpack.js" + displayReasons + " --display-chunks --display-modules --display-origins --output-public-path \"js/\" -p " + extraArgs + targetArgs, function (error, stdout, stderr) {
if(stderr && remainingTimes === 1)
console.log(stderr);
if (error !== null)
if (error !== null && remainingTimes === 1)
console.log(error);
readme = tc(readme, process.cwd(), stdout.replace(/[\r\n]*$/, ""));
readme = readme.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
fs.writeFile("README.md", readme, "utf-8", function() {});
var readme = tc(fs.readFileSync(require("path").join(process.cwd(), "template.md"), "utf-8"), process.cwd(), stdout.replace(/[\r\n]*$/, ""), "min");
cp.exec("node ../../bin/webpack.js" + displayReasons + " --display-chunks --display-modules --display-origins --output-public-path \"js/\" --output-pathinfo " + extraArgs + targetArgs, function (error, stdout, stderr) {
if(remainingTimes === 1)
console.log(stdout);
if(stderr && remainingTimes === 1)
console.log(stderr);
if (error !== null && remainingTimes === 1)
console.log(error);
readme = tc(readme, process.cwd(), stdout.replace(/[\r\n]*$/, ""));
readme = readme.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
fs.writeFile("README.md", readme, "utf-8", function() {});
if(remainingTimes > 1)
doIt(remainingTimes - 1);
});
});
});
}(3));

View File

@ -61,90 +61,92 @@ body {
## Uncompressed
```
Hash: eef5d1aa6f7b7111aa13
Version: webpack 1.5.0
Time: 196ms
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
0.output.js 2163 0 [emitted]
output.js 10626 1 [emitted] main
style.css 71 1 [emitted] main
chunk {0} 0.output.js 1482 {1} [rendered]
> [0] ./example.js 2:0-20
[2] (webpack)/~/css-loader!./style2.css 205 {0} [built]
cjs require !!(webpack)/~\css-loader\index.js!.\style2.css [4] ./style2.css 4:14-177
[4] ./style2.css 1170 {0} [built]
cjs require ./style2.css [5] ./chunk.js 1:0-23
[5] ./chunk.js 26 {0} [built]
amd require ./chunk [0] ./example.js 2:0-20
[6] ./image2.png 81 {0} [built]
cjs require ./image2.png [2] (webpack)/~/css-loader!./style2.css 2:56-79
chunk {1} output.js, style.css (main) 5948 [rendered]
Hash: 13e867002fd5bc063445
Version: webpack 1.9.10
Time: 398ms
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
output.js 12.2 kB 0 [emitted] main
1.output.js 2.03 kB 1 [emitted]
style.css 71 bytes 0 [emitted] main
chunk {0} output.js, style.css (main) 7.69 kB [rendered]
> main [0] ./example.js
[0] ./example.js 48 {1} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {1} [built]
cjs require (webpack)/~\css-loader\cssToString.js [2] (webpack)/~/css-loader!./style2.css 1:27-101
cjs require (webpack)/~\css-loader\cssToString.js [8] (webpack)/~/css-loader!./style.css 1:27-101
[3] ./style.css 41 {1} [built]
[0] ./example.js 48 bytes {0} [built]
[1] ./style.css 41 bytes {0} [built]
cjs require ./style.css [0] ./example.js 1:0-22
[7] (webpack)/~/style-loader/addStyles.js 5507 {1} [built]
cjs require !(webpack)\node_modules\style-loader\addStyles.js [4] ./style2.css 7:13-111
[3] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style.css 1:27-85
cjs require ./../../node_modules/css-loader/lib/css-base.js [8] (webpack)/~/css-loader!./style2.css 1:27-85
[5] (webpack)/~/style-loader/addStyles.js 6.09 kB {0} [built]
cjs require !./../../node_modules/style-loader/addStyles.js [7] ./style2.css 7:13-71
chunk {1} 1.output.js 1.22 kB {0} [rendered]
> [0] ./example.js 2:0-20
[6] ./chunk.js 26 bytes {1} [built]
amd require ./chunk [0] ./example.js 2:0-20
[7] ./style2.css 922 bytes {1} [built]
cjs require ./style2.css [6] ./chunk.js 1:0-23
[8] (webpack)/~/css-loader!./style2.css 189 bytes {1} [built]
cjs require !!./../../node_modules/css-loader/index.js!./style2.css [7] ./style2.css 4:14-80
[9] ./image2.png 81 bytes {1} [built]
cjs require ./image2.png [8] (webpack)/~/css-loader!./style2.css 2:56-79
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\style.css 637 [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 1.77 kB [rendered]
> [0] (webpack)/~/css-loader!./style.css
[0] (webpack)/~/css-loader!./style.css 204 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./style.css 1:27-101
[2] ./image.png 81 {0} [built]
[0] (webpack)/~/css-loader!./style.css 188 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./style.css 1:27-85
[2] ./image.png 81 bytes {0} [built]
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:56-78
```
## Minimized (uglify-js, no zip)
```
Hash: 7fc8a453077654aaa032
Version: webpack 1.5.0
Time: 377ms
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
0.output.js 279 0 [emitted]
output.js 3299 1 [emitted] main
style.css 61 1 [emitted] main
chunk {0} 0.output.js 1465 {1} [rendered]
> [0] ./example.js 2:0-20
[2] (webpack)/~/css-loader!./style2.css 188 {0} [built]
cjs require !!(webpack)/~\css-loader\index.js!.\style2.css [4] ./style2.css 4:14-177
[4] ./style2.css 1170 {0} [built]
cjs require ./style2.css [5] ./chunk.js 1:0-23
[5] ./chunk.js 26 {0} [built]
amd require ./chunk [0] ./example.js 2:0-20
[6] ./image2.png 81 {0} [built]
cjs require ./image2.png [2] (webpack)/~/css-loader!./style2.css 2:48-71
chunk {1} output.js, style.css (main) 5948 [rendered]
Hash: 3482165c2af27e982e7a
Version: webpack 1.9.10
Time: 773ms
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
output.js 3.92 kB 0 [emitted] main
1.output.js 310 bytes 1 [emitted]
style.css 61 bytes 0 [emitted] main
chunk {0} output.js, style.css (main) 7.69 kB [rendered]
> main [0] ./example.js
[0] ./example.js 48 {1} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {1} [built]
cjs require (webpack)/~\css-loader\cssToString.js [2] (webpack)/~/css-loader!./style2.css 1:27-101
cjs require (webpack)/~\css-loader\cssToString.js [8] (webpack)/~/css-loader!./style.css 1:27-101
[3] ./style.css 41 {1} [built]
[0] ./example.js 48 bytes {0} [built]
[3] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style2.css 1:27-85
cjs require ./../../node_modules/css-loader/lib/css-base.js [8] (webpack)/~/css-loader!./style.css 1:27-85
[4] ./style.css 41 bytes {0} [built]
cjs require ./style.css [0] ./example.js 1:0-22
[7] (webpack)/~/style-loader/addStyles.js 5507 {1} [built]
cjs require !(webpack)\node_modules\style-loader\addStyles.js [4] ./style2.css 7:13-111
WARNING in 0.output.js from UglifyJs
Condition always false [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:9,0]
Dropping unreachable code [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:11,0]
Side effects in initialization of unused variable update [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:7,0]
[7] (webpack)/~/style-loader/addStyles.js 6.09 kB {0} [built]
cjs require !./../../node_modules/style-loader/addStyles.js [5] ./style2.css 7:13-71
chunk {1} 1.output.js 1.2 kB {0} [rendered]
> [0] ./example.js 2:0-20
[1] ./chunk.js 26 bytes {1} [built]
amd require ./chunk [0] ./example.js 2:0-20
[2] (webpack)/~/css-loader!./style2.css 172 bytes {1} [built]
cjs require !!./../../node_modules/css-loader/index.js!./style2.css [5] ./style2.css 4:14-80
[5] ./style2.css 922 bytes {1} [built]
cjs require ./style2.css [1] ./chunk.js 1:0-23
[6] ./image2.png 81 bytes {1} [built]
cjs require ./image2.png [2] (webpack)/~/css-loader!./style2.css 2:48-71
WARNING in output.js from UglifyJs
Side effects in initialization of unused variable sourceMap [(webpack)/~/style-loader/addStyles.js:185,0]
Side effects in initialization of unused variable media [(webpack)/~/style-loader/addStyles.js:203,0]
Condition always false [(webpack)/~/style-loader/addStyles.js:23,0]
Dropping unreachable code [(webpack)/~/style-loader/addStyles.js:24,0]
WARNING in 1.output.js from UglifyJs
Condition always false [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:10,0]
Dropping unreachable code [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:12,0]
Side effects in initialization of unused variable update [(webpack)/~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!(webpack)/~/style-loader!(webpack)/~/css-loader!./style2.css:7,0]
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\style.css 620 [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 1.76 kB [rendered]
> [0] (webpack)/~/css-loader!./style.css
[0] (webpack)/~/css-loader!./style.css 187 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./style.css 1:27-101
[2] ./image.png 81 {0} [built]
[0] (webpack)/~/css-loader!./style.css 171 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./style.css 1:27-85
[2] ./image.png 81 bytes {0} [built]
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:48-70
```

View File

@ -28,7 +28,7 @@ require(["../dedupe/b"]);
/******/ }
/******/ for(moduleId in moreModules) {
/******/ var _m = moreModules[moduleId];
/******/
/******/ // Check if module is deduplicated
/******/ switch(typeof _m) {
/******/ case "number":
@ -52,50 +52,50 @@ require(["../dedupe/b"]);
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ while(callbacks.length)
/******/ callbacks.shift().call(null, __webpack_require__);
/******/
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 3:0
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -107,20 +107,21 @@ require(["../dedupe/b"]);
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -128,19 +129,21 @@ require(["../dedupe/b"]);
/******/ ((function(modules) {
// Check all modules for deduplicated modules
for(var i in modules) {
switch(typeof modules[i]) {
case "number":
// Module is a copy of another module
modules[i] = modules[modules[i]];
break;
case "object":
// Module can be created from a template
modules[i] = (function(_m) {
var args = _m.slice(1), fn = modules[_m[0]];
return function (a,b,c) {
fn.apply(null, [a,b,c].concat(args));
};
}(modules[i]));
if(Object.prototype.hasOwnProperty.call(modules, i)) {
switch(typeof modules[i]) {
case "number":
// Module is a copy of another module
modules[i] = modules[modules[i]];
break;
case "object":
// Module can be created from a template
modules[i] = (function(_m) {
var args = _m.slice(1), fn = modules[_m[0]];
return function (a,b,c) {
fn.apply(null, [a,b,c].concat(args));
};
}(modules[i]));
}
}
}
return modules;
@ -152,181 +155,160 @@ require(["../dedupe/b"]);
/***/ function(module, exports, __webpack_require__) {
// index.js and x.js can be deduplicated
__webpack_require__.e/* require */(0, function() {[__webpack_require__(/*! ../dedupe/a */ 2), __webpack_require__(/*! bundle?lazy!../dedupe/b */ 8)];});
__webpack_require__.e/* require */(1, function() {[__webpack_require__(/*! ../dedupe/a */ 1), __webpack_require__(/*! bundle?lazy!../dedupe/b */ 5)];});
// index.js and x.js cannot be deduplicated
__webpack_require__.e/* require */(2, function() {[__webpack_require__(/*! ../dedupe/a */ 2)];});
__webpack_require__.e/* require */(1, function() {[__webpack_require__(/*! ../dedupe/b */ 5)];});
__webpack_require__.e/* require */(3, function() {[__webpack_require__(/*! ../dedupe/a */ 1)];});
__webpack_require__.e/* require */(4, function() {[__webpack_require__(/*! ../dedupe/b */ 6)];});
/***/ }
/******/ ])))
/******/ ])));
```
# js/0.output.js
# js/1.output.js
``` javascript
webpackJsonp([0,2],[
webpackJsonp([1,3],[
/* 0 */,
/* 1 */
/*!**********************!*\
!*** ../dedupe/z.js ***!
\**********************/
/***/ function(module, exports, __webpack_require__) {
module.exports = {"this is": "z"};
/***/ },
/* 2 */
/*!****************************!*\
!*** ../dedupe/a/index.js ***!
\****************************/
[9, 3, 4],
/* 3 */
[9, 2, 3],
/* 2 */
/*!************************!*\
!*** ../dedupe/a/x.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = {"this is": "x"};
/***/ },
/* 4 */
/* 3 */
/*!************************!*\
!*** ../dedupe/a/y.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = {"this is": "y", "but in": "a"};
/***/ },
/* 5 */,
/* 6 */,
/* 7 */,
/* 8 */
/* 4 */
/*!**********************!*\
!*** ../dedupe/z.js ***!
\**********************/
/***/ function(module, exports) {
module.exports = {"this is": "z"};
/***/ },
/* 5 */
/*!***********************************************************!*\
!*** (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js ***!
\***********************************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function(cb) {
__webpack_require__.e/* nsure */(4, function(require) {
cb(__webpack_require__(/*! !../dedupe/b/index.js */ 5));
__webpack_require__.e/* nsure */(2, function(require) {
cb(__webpack_require__(/*! !./index.js */ 6));
});
}
/***/ },
/* 6 */,
/* 7 */,
/* 8 */,
/* 9 */
/*!***********************************!*\
!*** template of 2 referencing 1 ***!
!*** template of 1 referencing 4 ***!
\***********************************/
/***/ function(module, exports, __webpack_require__, __webpack_module_template_argument_0__, __webpack_module_template_argument_1__) {
module.exports = {
x: __webpack_require__(__webpack_module_template_argument_0__),
y: __webpack_require__(__webpack_module_template_argument_1__),
z: __webpack_require__(/*! ../z */ 1)
z: __webpack_require__(/*! ../z */ 4)
}
/***/ }
]);
```
# js/1.output.js
``` javascript
webpackJsonp([1,4],[
/* 0 */,
/* 1 */
/*!**********************!*\
!*** ../dedupe/z.js ***!
\**********************/
/***/ function(module, exports, __webpack_require__) {
module.exports = {"this is": "z"};
/***/ },
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */
/*!****************************!*\
!*** ../dedupe/b/index.js ***!
\****************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = {
x: __webpack_require__(/*! ./x */ 6),
y: __webpack_require__(/*! ./y */ 7),
z: __webpack_require__(/*! ../z */ 1)
}
/***/ },
/* 6 */
/*!************************!*\
!*** ../dedupe/b/x.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = {"this is": "x"};
/***/ },
/* 7 */
/*!************************!*\
!*** ../dedupe/b/y.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = {"this is": "y", "but in": "b"};
/***/ }
]);
```
# js/2.output.js
``` javascript
webpackJsonp([2],[
webpackJsonp([2],{
/***/ 6:
/*!****************************!*\
!*** ../dedupe/b/index.js ***!
\****************************/
[9, 7, 8],
/***/ 7:
/*!************************!*\
!*** ../dedupe/b/x.js ***!
\************************/
2,
/***/ 8:
/*!************************!*\
!*** ../dedupe/b/y.js ***!
\************************/
/***/ function(module, exports) {
module.exports = {"this is": "y", "but in": "b"};
/***/ }
});
```
# js/3.output.js
``` javascript
webpackJsonp([3],[
/* 0 */,
/* 1 */
/*!**********************!*\
!*** ../dedupe/z.js ***!
\**********************/
/***/ function(module, exports, __webpack_require__) {
module.exports = {"this is": "z"};
/***/ },
/* 2 */
/*!****************************!*\
!*** ../dedupe/a/index.js ***!
\****************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = {
x: __webpack_require__(/*! ./x */ 3),
y: __webpack_require__(/*! ./y */ 4),
z: __webpack_require__(/*! ../z */ 1)
x: __webpack_require__(/*! ./x */ 2),
y: __webpack_require__(/*! ./y */ 3),
z: __webpack_require__(/*! ../z */ 4)
}
/***/ },
/* 3 */
/* 2 */
/*!************************!*\
!*** ../dedupe/a/x.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = {"this is": "x"};
/***/ },
/* 4 */
/* 3 */
/*!************************!*\
!*** ../dedupe/a/y.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = {"this is": "y", "but in": "a"};
/***/ },
/* 4 */
/*!**********************!*\
!*** ../dedupe/z.js ***!
\**********************/
/***/ function(module, exports) {
module.exports = {"this is": "z"};
/***/ }
]);
```
@ -334,27 +316,48 @@ webpackJsonp([2],[
# js/4.output.js
``` javascript
webpackJsonp([4],[
webpackJsonp([4,2],[
/* 0 */,
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */
/* 4 */
/*!**********************!*\
!*** ../dedupe/z.js ***!
\**********************/
/***/ function(module, exports) {
module.exports = {"this is": "z"};
/***/ },
/* 5 */,
/* 6 */
/*!****************************!*\
!*** ../dedupe/b/index.js ***!
\****************************/
[9, 6, 7],
/* 6 */
/***/ function(module, exports, __webpack_require__) {
module.exports = {
x: __webpack_require__(/*! ./x */ 7),
y: __webpack_require__(/*! ./y */ 8),
z: __webpack_require__(/*! ../z */ 4)
}
/***/ },
/* 7 */
/*!************************!*\
!*** ../dedupe/b/x.js ***!
\************************/
3,
/* 7 */
/***/ function(module, exports) {
module.exports = {"this is": "x"};
/***/ },
/* 8 */
/*!************************!*\
!*** ../dedupe/b/y.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = {"this is": "y", "but in": "b"};
@ -367,136 +370,133 @@ webpackJsonp([4],[
## Uncompressed
```
Hash: 2f3b58e83802edd9cba5
Version: webpack 1.5.0
Time: 88ms
Asset Size Chunks Chunk Names
0.output.js 1688 0, 2 [emitted]
1.output.js 987 1, 4 [emitted]
2.output.js 958 2 [emitted]
output.js 5384 3 [emitted] main
4.output.js 500 4 [emitted]
chunk {0} 0.output.js 459 {3} [rendered]
> [0] ./example.js 2:0-51
[1] ../dedupe/z.js 34 {0} {1} {2} [built]
cjs require ../z [2] ../dedupe/a/index.js 4:4-19
cjs require ../z [5] ../dedupe/b/index.js 4:4-19
[2] ../dedupe/a/index.js 84 {0} {2} [built]
amd require ../dedupe/a [0] ./example.js 2:0-51
amd require ../dedupe/a [0] ./example.js 5:0-24
[3] ../dedupe/a/x.js 34 {0} {2} [built]
cjs require ./x [2] ../dedupe/a/index.js 2:4-18
[4] ../dedupe/a/y.js 49 {0} {2} [built]
cjs require ./y [2] ../dedupe/a/index.js 3:4-18
[8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 174 {0} [built]
amd require bundle?lazy!../dedupe/b [0] ./example.js 2:0-51
[9] template of 2 referencing 1 84 {0} [not cacheable] [built]
template 1 [2] ../dedupe/a/index.js
template 1 [5] ../dedupe/b/index.js
chunk {1} 1.output.js 201 {3} [rendered]
> [0] ./example.js 6:0-24
[1] ../dedupe/z.js 34 {0} {1} {2} [built]
cjs require ../z [2] ../dedupe/a/index.js 4:4-19
cjs require ../z [5] ../dedupe/b/index.js 4:4-19
[5] ../dedupe/b/index.js 84 {1} {4} [built]
amd require ../dedupe/b [0] ./example.js 6:0-24
cjs require !!(webpack)\examples\dedupe\b\index.js [8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 3:5-93
[6] ../dedupe/b/x.js 34 {1} {4} [built]
cjs require ./x [5] ../dedupe/b/index.js 2:4-18
[7] ../dedupe/b/y.js 49 {1} {4} [built]
cjs require ./y [5] ../dedupe/b/index.js 3:4-18
chunk {2} 2.output.js 201 {3} [rendered]
> [0] ./example.js 5:0-24
[1] ../dedupe/z.js 34 {0} {1} {2} [built]
cjs require ../z [2] ../dedupe/a/index.js 4:4-19
cjs require ../z [5] ../dedupe/b/index.js 4:4-19
[2] ../dedupe/a/index.js 84 {0} {2} [built]
amd require ../dedupe/a [0] ./example.js 2:0-51
amd require ../dedupe/a [0] ./example.js 5:0-24
[3] ../dedupe/a/x.js 34 {0} {2} [built]
cjs require ./x [2] ../dedupe/a/index.js 2:4-18
[4] ../dedupe/a/y.js 49 {0} {2} [built]
cjs require ./y [2] ../dedupe/a/index.js 3:4-18
chunk {3} output.js (main) 197 [rendered]
Hash: 04b9ded65bfb8f87f0a0
Version: webpack 1.9.10
Time: 116ms
Asset Size Chunks Chunk Names
output.js 5.33 kB 0 [emitted] main
1.output.js 1.61 kB 1, 3 [emitted]
2.output.js 441 bytes 2 [emitted]
3.output.js 895 bytes 3 [emitted]
4.output.js 933 bytes 4, 2 [emitted]
chunk {0} output.js (main) 197 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 197 {3} [built]
chunk {4} 4.output.js 167 {0} [rendered]
> [8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 2:1-4:3
[5] ../dedupe/b/index.js 84 {1} {4} [built]
[0] ./example.js 197 bytes {0} [built]
chunk {1} 1.output.js 394 bytes {0} [rendered]
> [0] ./example.js 2:0-51
[1] ../dedupe/a/index.js 84 bytes {1} {3} [built]
amd require ../dedupe/a [0] ./example.js 2:0-51
amd require ../dedupe/a [0] ./example.js 5:0-24
[2] ../dedupe/a/x.js 34 bytes {1} {3} [built]
cjs require ./x [1] ../dedupe/a/index.js 2:4-18
[3] ../dedupe/a/y.js 49 bytes {1} {3} [built]
cjs require ./y [1] ../dedupe/a/index.js 3:4-18
[4] ../dedupe/z.js 34 bytes {1} {3} {4} [built]
cjs require ../z [1] ../dedupe/a/index.js 4:4-19
cjs require ../z [6] ../dedupe/b/index.js 4:4-19
[5] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 109 bytes {1} [built]
amd require bundle?lazy!../dedupe/b [0] ./example.js 2:0-51
[9] template of 1 referencing 4 84 bytes {1} [not cacheable] [built]
template 4 [1] ../dedupe/a/index.js
template 4 [6] ../dedupe/b/index.js
chunk {2} 2.output.js 167 bytes {1} [rendered]
> [5] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 2:1-4:3
[6] ../dedupe/b/index.js 84 bytes {2} {4} [built]
amd require ../dedupe/b [0] ./example.js 6:0-24
cjs require !!(webpack)\examples\dedupe\b\index.js [8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 3:5-93
[6] ../dedupe/b/x.js 34 {1} {4} [built]
cjs require ./x [5] ../dedupe/b/index.js 2:4-18
[7] ../dedupe/b/y.js 49 {1} {4} [built]
cjs require ./y [5] ../dedupe/b/index.js 3:4-18
cjs require !!./index.js [5] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 3:5-28
[7] ../dedupe/b/x.js 34 bytes {2} {4} [built]
cjs require ./x [6] ../dedupe/b/index.js 2:4-18
[8] ../dedupe/b/y.js 49 bytes {2} {4} [built]
cjs require ./y [6] ../dedupe/b/index.js 3:4-18
chunk {3} 3.output.js 201 bytes {0} [rendered]
> [0] ./example.js 5:0-24
[1] ../dedupe/a/index.js 84 bytes {1} {3} [built]
amd require ../dedupe/a [0] ./example.js 2:0-51
amd require ../dedupe/a [0] ./example.js 5:0-24
[2] ../dedupe/a/x.js 34 bytes {1} {3} [built]
cjs require ./x [1] ../dedupe/a/index.js 2:4-18
[3] ../dedupe/a/y.js 49 bytes {1} {3} [built]
cjs require ./y [1] ../dedupe/a/index.js 3:4-18
[4] ../dedupe/z.js 34 bytes {1} {3} {4} [built]
cjs require ../z [1] ../dedupe/a/index.js 4:4-19
cjs require ../z [6] ../dedupe/b/index.js 4:4-19
chunk {4} 4.output.js 201 bytes {0} [rendered]
> [0] ./example.js 6:0-24
[4] ../dedupe/z.js 34 bytes {1} {3} {4} [built]
cjs require ../z [1] ../dedupe/a/index.js 4:4-19
cjs require ../z [6] ../dedupe/b/index.js 4:4-19
[6] ../dedupe/b/index.js 84 bytes {2} {4} [built]
amd require ../dedupe/b [0] ./example.js 6:0-24
cjs require !!./index.js [5] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 3:5-28
[7] ../dedupe/b/x.js 34 bytes {2} {4} [built]
cjs require ./x [6] ../dedupe/b/index.js 2:4-18
[8] ../dedupe/b/y.js 49 bytes {2} {4} [built]
cjs require ./y [6] ../dedupe/b/index.js 3:4-18
```
## Minimized (uglify-js, no zip)
```
Hash: e213056d0565a5ac1054
Version: webpack 1.5.0
Time: 186ms
Asset Size Chunks Chunk Names
0.output.js 285 0, 2 [emitted]
1.output.js 206 1, 4 [emitted]
2.output.js 201 2 [emitted]
output.js 1195 3 [emitted] main
4.output.js 87 4 [emitted]
chunk {0} 0.output.js 459 {3} [rendered]
Hash: d5d4e99e565dec321575
Version: webpack 1.9.10
Time: 377ms
Asset Size Chunks Chunk Names
0.output.js 292 bytes 0, 2 [emitted]
1.output.js 212 bytes 1, 4 [emitted]
2.output.js 207 bytes 2 [emitted]
output.js 1.24 kB 3 [emitted] main
4.output.js 89 bytes 4 [emitted]
chunk {0} 0.output.js 394 bytes {3} [rendered]
> [0] ./example.js 2:0-51
[1] ../dedupe/z.js 34 {0} {1} {2} [built]
[1] ../dedupe/z.js 34 bytes {0} {1} {2} [built]
cjs require ../z [2] ../dedupe/a/index.js 4:4-19
cjs require ../z [5] ../dedupe/b/index.js 4:4-19
[2] ../dedupe/a/index.js 84 {0} {2} [built]
[2] ../dedupe/a/index.js 84 bytes {0} {2} [built]
amd require ../dedupe/a [0] ./example.js 2:0-51
amd require ../dedupe/a [0] ./example.js 5:0-24
[3] ../dedupe/a/x.js 34 {0} {2} [built]
[3] ../dedupe/a/x.js 34 bytes {0} {2} [built]
cjs require ./x [2] ../dedupe/a/index.js 2:4-18
[4] ../dedupe/a/y.js 49 {0} {2} [built]
[4] ../dedupe/a/y.js 49 bytes {0} {2} [built]
cjs require ./y [2] ../dedupe/a/index.js 3:4-18
[8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 174 {0} [built]
[8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 109 bytes {0} [built]
amd require bundle?lazy!../dedupe/b [0] ./example.js 2:0-51
[9] template of 2 referencing 1 84 {0} [not cacheable] [built]
[9] template of 2 referencing 1 84 bytes {0} [not cacheable] [built]
template 1 [2] ../dedupe/a/index.js
template 1 [5] ../dedupe/b/index.js
chunk {1} 1.output.js 201 {3} [rendered]
chunk {1} 1.output.js 201 bytes {3} [rendered]
> [0] ./example.js 6:0-24
[1] ../dedupe/z.js 34 {0} {1} {2} [built]
[1] ../dedupe/z.js 34 bytes {0} {1} {2} [built]
cjs require ../z [2] ../dedupe/a/index.js 4:4-19
cjs require ../z [5] ../dedupe/b/index.js 4:4-19
[5] ../dedupe/b/index.js 84 {1} {4} [built]
[5] ../dedupe/b/index.js 84 bytes {1} {4} [built]
amd require ../dedupe/b [0] ./example.js 6:0-24
cjs require !!(webpack)\examples\dedupe\b\index.js [8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 3:5-93
[6] ../dedupe/b/x.js 34 {1} {4} [built]
cjs require !!./index.js [8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 3:5-28
[6] ../dedupe/b/x.js 34 bytes {1} {4} [built]
cjs require ./x [5] ../dedupe/b/index.js 2:4-18
[7] ../dedupe/b/y.js 49 {1} {4} [built]
[7] ../dedupe/b/y.js 49 bytes {1} {4} [built]
cjs require ./y [5] ../dedupe/b/index.js 3:4-18
chunk {2} 2.output.js 201 {3} [rendered]
chunk {2} 2.output.js 201 bytes {3} [rendered]
> [0] ./example.js 5:0-24
[1] ../dedupe/z.js 34 {0} {1} {2} [built]
[1] ../dedupe/z.js 34 bytes {0} {1} {2} [built]
cjs require ../z [2] ../dedupe/a/index.js 4:4-19
cjs require ../z [5] ../dedupe/b/index.js 4:4-19
[2] ../dedupe/a/index.js 84 {0} {2} [built]
[2] ../dedupe/a/index.js 84 bytes {0} {2} [built]
amd require ../dedupe/a [0] ./example.js 2:0-51
amd require ../dedupe/a [0] ./example.js 5:0-24
[3] ../dedupe/a/x.js 34 {0} {2} [built]
[3] ../dedupe/a/x.js 34 bytes {0} {2} [built]
cjs require ./x [2] ../dedupe/a/index.js 2:4-18
[4] ../dedupe/a/y.js 49 {0} {2} [built]
[4] ../dedupe/a/y.js 49 bytes {0} {2} [built]
cjs require ./y [2] ../dedupe/a/index.js 3:4-18
chunk {3} output.js (main) 197 [rendered]
chunk {3} output.js (main) 197 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 197 {3} [built]
chunk {4} 4.output.js 167 {0} [rendered]
[0] ./example.js 197 bytes {3} [built]
chunk {4} 4.output.js 167 bytes {0} [rendered]
> [8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 2:1-4:3
[5] ../dedupe/b/index.js 84 {1} {4} [built]
[5] ../dedupe/b/index.js 84 bytes {1} {4} [built]
amd require ../dedupe/b [0] ./example.js 6:0-24
cjs require !!(webpack)\examples\dedupe\b\index.js [8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 3:5-93
[6] ../dedupe/b/x.js 34 {1} {4} [built]
cjs require !!./index.js [8] (webpack)/~/bundle-loader?lazy!../dedupe/b/index.js 3:5-28
[6] ../dedupe/b/x.js 34 bytes {1} {4} [built]
cjs require ./x [5] ../dedupe/b/index.js 2:4-18
[7] ../dedupe/b/y.js 49 {1} {4} [built]
[7] ../dedupe/b/y.js 49 bytes {1} {4} [built]
cjs require ./y [5] ../dedupe/b/index.js 3:4-18
WARNING in 0.output.js from UglifyJs
Dropping unused function argument require [(webpack)/~/bundle-loader?lazy!../dedupe/b/index.js:2,0]
```

View File

@ -11,12 +11,6 @@
{{js/output.js}}
```
# js/0.output.js
``` javascript
{{js/0.output.js}}
```
# js/1.output.js
``` javascript
@ -29,6 +23,12 @@
{{js/2.output.js}}
```
# js/3.output.js
``` javascript
{{js/3.output.js}}
```
# js/4.output.js
``` javascript

View File

@ -36,50 +36,50 @@ getTemplate("b", function(b) {
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ while(callbacks.length)
/******/ callbacks.shift().call(null, __webpack_require__);
/******/
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 1:0
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -91,20 +91,21 @@ getTemplate("b", function(b) {
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -117,7 +118,7 @@ getTemplate("b", function(b) {
/***/ function(module, exports, __webpack_require__) {
function getTemplate(templateName, callback) {
__webpack_require__.e/* require */(0, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 4)("./"+templateName)]; (function(tmpl) {
__webpack_require__.e/* require */(1, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 1)("./"+templateName)]; (function(tmpl) {
callback(tmpl());
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
}
@ -129,60 +130,27 @@ getTemplate("b", function(b) {
});
/***/ }
/******/ ])
/******/ ]);
```
# js/0.output.js
# js/1.output.js
``` javascript
webpackJsonp([0],[
webpackJsonp([1],[
/* 0 */,
/* 1 */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template A";
}
/***/ },
/* 2 */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template B";
}
/***/ },
/* 3 */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template C";
}
/***/ },
/* 4 */
/*!*********************************************!*\
!*** ../require.context/templates ^\.\/.*$ ***!
\*********************************************/
/***/ function(module, exports, __webpack_require__) {
var map = {
"./a": 1,
"./a.js": 1,
"./b": 2,
"./b.js": 2,
"./c": 3,
"./c.js": 3
"./a": 2,
"./a.js": 2,
"./b": 3,
"./b.js": 3,
"./c": 4,
"./c.js": 4
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
@ -195,9 +163,42 @@ webpackJsonp([0],[
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 4;
webpackContext.id = 1;
/***/ },
/* 2 */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template A";
}
/***/ },
/* 3 */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template B";
}
/***/ },
/* 4 */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template C";
}
/***/ }
]);
```
@ -207,53 +208,53 @@ webpackJsonp([0],[
## Uncompressed
```
Hash: 3e820ea8845a935f799a
Version: webpack 1.5.0
Time: 52ms
Asset Size Chunks Chunk Names
0.output.js 1678 0 [emitted]
output.js 4212 1 [emitted] main
chunk {0} 0.output.js 463 {1} [rendered]
> [0] ./example.js 2:1-4:3
[1] ../require.context/templates/a.js 82 {0} [optional] [built]
context element ./a.js [4] ../require.context/templates ^\.\/.*$
context element ./a [4] ../require.context/templates ^\.\/.*$
[2] ../require.context/templates/b.js 82 {0} [optional] [built]
context element ./b.js [4] ../require.context/templates ^\.\/.*$
context element ./b [4] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/c.js 82 {0} [optional] [built]
context element ./c.js [4] ../require.context/templates ^\.\/.*$
context element ./c [4] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates ^\.\/.*$ 217 {0} [built]
amd require context ../require.context/templates [0] ./example.js 2:1-4:3
chunk {1} output.js (main) 261 [rendered]
Hash: 07e105e1c0b1862a78c9
Version: webpack 1.9.10
Time: 84ms
Asset Size Chunks Chunk Names
output.js 4.09 kB 0 [emitted] main
1.output.js 1.61 kB 1 [emitted]
chunk {0} output.js (main) 261 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 261 {1} [built]
[0] ./example.js 261 bytes {0} [built]
chunk {1} 1.output.js 463 bytes {0} [rendered]
> [0] ./example.js 2:1-4:3
[1] ../require.context/templates ^\.\/.*$ 217 bytes {1} [built]
amd require context ../require.context/templates [0] ./example.js 2:1-4:3
[2] ../require.context/templates/a.js 82 bytes {1} [optional] [built]
context element ./a.js [1] ../require.context/templates ^\.\/.*$
context element ./a [1] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/b.js 82 bytes {1} [optional] [built]
context element ./b.js [1] ../require.context/templates ^\.\/.*$
context element ./b [1] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates/c.js 82 bytes {1} [optional] [built]
context element ./c.js [1] ../require.context/templates ^\.\/.*$
context element ./c [1] ../require.context/templates ^\.\/.*$
```
## Minimized (uglify-js, no zip)
```
Hash: 5557dcfc77958a60d6eb
Version: webpack 1.5.0
Time: 162ms
Asset Size Chunks Chunk Names
0.output.js 535 0 [emitted]
output.js 878 1 [emitted] main
chunk {0} 0.output.js 463 {1} [rendered]
Hash: 2d1494c43288d06719f8
Version: webpack 1.9.10
Time: 270ms
Asset Size Chunks Chunk Names
0.output.js 541 bytes 0 [emitted]
output.js 878 bytes 1 [emitted] main
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [0] ./example.js 2:1-4:3
[1] ../require.context/templates/a.js 82 {0} [optional] [built]
[1] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a.js [4] ../require.context/templates ^\.\/.*$
context element ./a [4] ../require.context/templates ^\.\/.*$
[2] ../require.context/templates/b.js 82 {0} [optional] [built]
[2] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b.js [4] ../require.context/templates ^\.\/.*$
context element ./b [4] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/c.js 82 {0} [optional] [built]
[3] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c.js [4] ../require.context/templates ^\.\/.*$
context element ./c [4] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates ^\.\/.*$ 217 {0} [built]
[4] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
amd require context ../require.context/templates [0] ./example.js 2:1-4:3
chunk {1} output.js (main) 261 [rendered]
chunk {1} output.js (main) 261 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 261 {1} [built]
[0] ./example.js 261 bytes {1} [built]
```

View File

@ -10,10 +10,10 @@
{{js/output.js}}
```
# js/0.output.js
# js/1.output.js
``` javascript
{{js/0.output.js}}
{{js/1.output.js}}
```
# Info

View File

@ -36,50 +36,50 @@ getTemplate("b", function(b) {
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ while(callbacks.length)
/******/ callbacks.shift().call(null, __webpack_require__);
/******/
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 1:0
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -91,20 +91,21 @@ getTemplate("b", function(b) {
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -117,8 +118,8 @@ getTemplate("b", function(b) {
/***/ function(module, exports, __webpack_require__) {
function getTemplate(templateName, callback) {
__webpack_require__.e/* nsure */(0, function(require) {
callback(__webpack_require__(/*! ../require.context/templates */ 4)("./"+templateName)());
__webpack_require__.e/* nsure */(1, function(require) {
callback(__webpack_require__(/*! ../require.context/templates */ 1)("./"+templateName)());
});
}
getTemplate("a", function(a) {
@ -129,60 +130,27 @@ getTemplate("b", function(b) {
});
/***/ }
/******/ ])
/******/ ]);
```
# js/0.output.js
# js/1.output.js
``` javascript
webpackJsonp([0],[
webpackJsonp([1],[
/* 0 */,
/* 1 */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template A";
}
/***/ },
/* 2 */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template B";
}
/***/ },
/* 3 */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template C";
}
/***/ },
/* 4 */
/*!*********************************************!*\
!*** ../require.context/templates ^\.\/.*$ ***!
\*********************************************/
/***/ function(module, exports, __webpack_require__) {
var map = {
"./a": 1,
"./a.js": 1,
"./b": 2,
"./b.js": 2,
"./c": 3,
"./c.js": 3
"./a": 2,
"./a.js": 2,
"./b": 3,
"./b.js": 3,
"./c": 4,
"./c.js": 4
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
@ -195,9 +163,42 @@ webpackJsonp([0],[
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 4;
webpackContext.id = 1;
/***/ },
/* 2 */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template A";
}
/***/ },
/* 3 */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template B";
}
/***/ },
/* 4 */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template C";
}
/***/ }
]);
```
@ -207,56 +208,53 @@ webpackJsonp([0],[
## Uncompressed
```
Hash: 13eac9ca684bf610df0e
Version: webpack 1.5.0
Time: 50ms
Asset Size Chunks Chunk Names
0.output.js 1678 0 [emitted]
output.js 4090 1 [emitted] main
chunk {0} 0.output.js 463 {1} [rendered]
> [0] ./example.js 2:1-4:3
[1] ../require.context/templates/a.js 82 {0} [optional] [built]
context element ./a.js [4] ../require.context/templates ^\.\/.*$
context element ./a [4] ../require.context/templates ^\.\/.*$
[2] ../require.context/templates/b.js 82 {0} [optional] [built]
context element ./b.js [4] ../require.context/templates ^\.\/.*$
context element ./b [4] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/c.js 82 {0} [optional] [built]
context element ./c.js [4] ../require.context/templates ^\.\/.*$
context element ./c [4] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates ^\.\/.*$ 217 {0} [built]
cjs require context ../require.context/templates [0] ./example.js 3:11-64
chunk {1} output.js (main) 276 [rendered]
Hash: c550c440359751c9cd75
Version: webpack 1.9.10
Time: 84ms
Asset Size Chunks Chunk Names
output.js 3.97 kB 0 [emitted] main
1.output.js 1.61 kB 1 [emitted]
chunk {0} output.js (main) 276 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 276 {1} [built]
[0] ./example.js 276 bytes {0} [built]
chunk {1} 1.output.js 463 bytes {0} [rendered]
> [0] ./example.js 2:1-4:3
[1] ../require.context/templates ^\.\/.*$ 217 bytes {1} [built]
cjs require context ../require.context/templates [0] ./example.js 3:11-64
[2] ../require.context/templates/a.js 82 bytes {1} [optional] [built]
context element ./a.js [1] ../require.context/templates ^\.\/.*$
context element ./a [1] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/b.js 82 bytes {1} [optional] [built]
context element ./b.js [1] ../require.context/templates ^\.\/.*$
context element ./b [1] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates/c.js 82 bytes {1} [optional] [built]
context element ./c.js [1] ../require.context/templates ^\.\/.*$
context element ./c [1] ../require.context/templates ^\.\/.*$
```
## Minimized (uglify-js, no zip)
```
Hash: 9dee8d3661888c64dfee
Version: webpack 1.5.0
Time: 163ms
Asset Size Chunks Chunk Names
0.output.js 535 0 [emitted]
output.js 838 1 [emitted] main
chunk {0} 0.output.js 463 {1} [rendered]
Hash: 152779484f9d7c207514
Version: webpack 1.9.10
Time: 283ms
Asset Size Chunks Chunk Names
0.output.js 541 bytes 0 [emitted]
output.js 839 bytes 1 [emitted] main
chunk {0} 0.output.js 463 bytes {1} [rendered]
> [0] ./example.js 2:1-4:3
[1] ../require.context/templates/a.js 82 {0} [optional] [built]
[1] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a.js [4] ../require.context/templates ^\.\/.*$
context element ./a [4] ../require.context/templates ^\.\/.*$
[2] ../require.context/templates/b.js 82 {0} [optional] [built]
[2] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b.js [4] ../require.context/templates ^\.\/.*$
context element ./b [4] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/c.js 82 {0} [optional] [built]
[3] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c.js [4] ../require.context/templates ^\.\/.*$
context element ./c [4] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates ^\.\/.*$ 217 {0} [built]
[4] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ../require.context/templates [0] ./example.js 3:11-64
chunk {1} output.js (main) 276 [rendered]
chunk {1} output.js (main) 276 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 276 {1} [built]
WARNING in output.js from UglifyJs
Dropping unused function argument require [./example.js:2,0]
[0] ./example.js 276 bytes {1} [built]
```

View File

@ -10,10 +10,10 @@
{{js/output.js}}
```
# js/0.output.js
# js/1.output.js
``` javascript
{{js/0.output.js}}
{{js/1.output.js}}
```
# Info

View File

@ -39,50 +39,50 @@ module.exports = "It works";
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ while(callbacks.length)
/******/ callbacks.shift().call(null, __webpack_require__);
/******/
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -94,20 +94,21 @@ module.exports = "It works";
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -119,13 +120,12 @@ module.exports = "It works";
\********************/
/***/ function(module, exports, __webpack_require__) {
__webpack_require__(/*! bundle!./file.js */ 2)(function(fileJsExports) {
__webpack_require__(/*! bundle!./file.js */ 1)(function(fileJsExports) {
console.log(fileJsExports);
});
/***/ },
/* 1 */,
/* 2 */
/* 1 */
/*!*******************************************!*\
!*** (webpack)/~/bundle-loader!./file.js ***!
\*******************************************/
@ -138,7 +138,7 @@ module.exports = "It works";
else cb(data);
}
__webpack_require__.e/* nsure */(1, function(require) {
data = __webpack_require__(/*! !./file.js */ 1);
data = __webpack_require__(/*! !./file.js */ 2);
var callbacks = cbs;
cbs = null;
for(var i = 0, l = callbacks.length; i < l; i++) {
@ -147,24 +147,25 @@ module.exports = "It works";
});
/***/ }
/******/ ])
/******/ ]);
```
# js/1.output.js
``` javascript
webpackJsonp([1],[
/* 0 */,
/* 1 */
webpackJsonp([1],{
/***/ 2:
/*!*****************!*\
!*** ./file.js ***!
\*****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "It works";
/***/ }
]);
});
```
# Info
@ -172,42 +173,39 @@ webpackJsonp([1],[
## Uncompressed
```
Hash: 338a850354a8cd68b5c7
Version: webpack 1.5.0
Time: 57ms
Asset Size Chunks Chunk Names
output.js 4432 0 [emitted] main
1.output.js 202 1 [emitted]
chunk {0} output.js (main) 453 [rendered]
Hash: 401ee5c665e77176fd3f
Version: webpack 1.9.10
Time: 102ms
Asset Size Chunks Chunk Names
output.js 4.3 kB 0 [emitted] main
1.output.js 175 bytes 1 [emitted]
chunk {0} output.js (main) 369 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 88 {0} [built]
[2] (webpack)/~/bundle-loader!./file.js 365 {0} [built]
[0] ./example.js 88 bytes {0} [built]
[1] (webpack)/~/bundle-loader!./file.js 281 bytes {0} [built]
cjs require bundle!./file.js [0] ./example.js 1:0-27
chunk {1} 1.output.js 28 {0} [rendered]
> [2] (webpack)/~/bundle-loader!./file.js 7:0-14:2
[1] ./file.js 28 {1} [built]
cjs require !!.\file.js [2] (webpack)/~/bundle-loader!./file.js 8:8-114
chunk {1} 1.output.js 28 bytes {0} [rendered]
> [1] (webpack)/~/bundle-loader!./file.js 7:0-14:2
[2] ./file.js 28 bytes {1} [built]
cjs require !!./file.js [1] (webpack)/~/bundle-loader!./file.js 8:8-30
```
## Minimized (uglify-js, no zip)
```
Hash: 1444d0062225001d8880
Version: webpack 1.5.0
Time: 144ms
Asset Size Chunks Chunk Names
output.js 898 0 [emitted] main
1.output.js 55 1 [emitted]
chunk {0} output.js (main) 453 [rendered]
Hash: 05b29e396109d10b7d34
Version: webpack 1.9.10
Time: 235ms
Asset Size Chunks Chunk Names
output.js 899 bytes 0 [emitted] main
1.output.js 57 bytes 1 [emitted]
chunk {0} output.js (main) 369 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 88 {0} [built]
[2] (webpack)/~/bundle-loader!./file.js 365 {0} [built]
[0] ./example.js 88 bytes {0} [built]
[2] (webpack)/~/bundle-loader!./file.js 281 bytes {0} [built]
cjs require bundle!./file.js [0] ./example.js 1:0-27
chunk {1} 1.output.js 28 {0} [rendered]
chunk {1} 1.output.js 28 bytes {0} [rendered]
> [2] (webpack)/~/bundle-loader!./file.js 7:0-14:2
[1] ./file.js 28 {1} [built]
cjs require !!.\file.js [2] (webpack)/~/bundle-loader!./file.js 8:8-114
WARNING in output.js from UglifyJs
Dropping unused function argument require [(webpack)/~/bundle-loader!./file.js:7,0]
[1] ./file.js 28 bytes {1} [built]
cjs require !!./file.js [2] (webpack)/~/bundle-loader!./file.js 8:8-30
```

View File

@ -58,50 +58,50 @@ require.ensure(["c"], function(require) {
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ while(callbacks.length)
/******/ callbacks.shift().call(null, __webpack_require__);
/******/
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -113,20 +113,21 @@ require.ensure(["c"], function(require) {
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -138,33 +139,33 @@ require.ensure(["c"], function(require) {
\********************/
/***/ function(module, exports, __webpack_require__) {
var a = __webpack_require__(/*! a */ 2);
var b = __webpack_require__(/*! b */ 1);
var a = __webpack_require__(/*! a */ 1);
var b = __webpack_require__(/*! b */ 2);
__webpack_require__.e/* nsure */(1, function(require) {
__webpack_require__(/*! b */ 1).xyz();
__webpack_require__(/*! b */ 2).xyz();
var d = __webpack_require__(/*! d */ 4);
});
/***/ },
/* 1 */
/*!****************!*\
!*** ./~/b.js ***!
!*** ./~/a.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// module b
// module a
/***/ },
/* 2 */
/*!****************!*\
!*** ./~/a.js ***!
!*** ./~/b.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// module a
// module b
/***/ }
/******/ ])
/******/ ]);
```
# js/1.output.js
@ -178,7 +179,7 @@ webpackJsonp([1],[
/*!****************!*\
!*** ./~/c.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// module c
@ -187,7 +188,7 @@ webpackJsonp([1],[
/*!****************!*\
!*** ./~/d.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// module d
@ -198,7 +199,7 @@ webpackJsonp([1],[
Minimized
``` javascript
webpackJsonp([1],[,,,function(){},function(){}]);
webpackJsonp([1],[,,,function(n,t){},function(n,t){}]);
```
# Info
@ -206,54 +207,53 @@ webpackJsonp([1],[,,,function(){},function(){}]);
## Uncompressed
```
Hash: 3d57ab4ad229b0d3def4
Version: webpack 1.5.0
Time: 43ms
Asset Size Chunks Chunk Names
output.js 4306 0 [emitted] main
1.output.js 352 1 [emitted]
chunk {0} output.js (main) 166 [rendered]
Hash: 597f16bd0c3e725bb744
Version: webpack 1.9.10
Time: 84ms
Asset Size Chunks Chunk Names
output.js 4.15 kB 0 [emitted] main
1.output.js 310 bytes 1 [emitted]
chunk {0} output.js (main) 166 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 144 {0} [built]
[1] ./~/b.js 11 {0} [built]
[0] ./example.js 144 bytes {0} [built]
[1] ./~/a.js 11 bytes {0} [built]
cjs require a [0] ./example.js 1:8-20
[2] ./~/b.js 11 bytes {0} [built]
cjs require b [0] ./example.js 2:8-20
cjs require b [0] ./example.js 4:4-16
[2] ./~/a.js 11 {0} [built]
cjs require a [0] ./example.js 1:8-20
chunk {1} 1.output.js 22 {0} [rendered]
chunk {1} 1.output.js 22 bytes {0} [rendered]
> [0] ./example.js 3:0-6:2
[3] ./~/c.js 11 {1} [built]
[3] ./~/c.js 11 bytes {1} [built]
require.ensure item c [0] ./example.js 3:0-6:2
[4] ./~/d.js 11 {1} [built]
[4] ./~/d.js 11 bytes {1} [built]
cjs require d [0] ./example.js 5:12-24
```
## Minimized (uglify-js, no zip)
```
Hash: 5ec4e073423ccd699e0e
Version: webpack 1.5.0
Time: 107ms
Asset Size Chunks Chunk Names
output.js 786 0 [emitted] main
1.output.js 49 1 [emitted]
chunk {0} output.js (main) 166 [rendered]
Hash: f511399c91173988d568
Version: webpack 1.9.10
Time: 213ms
Asset Size Chunks Chunk Names
output.js 793 bytes 0 [emitted] main
1.output.js 55 bytes 1 [emitted]
chunk {0} output.js (main) 166 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 144 {0} [built]
[1] ./~/b.js 11 {0} [built]
[0] ./example.js 144 bytes {0} [built]
[1] ./~/b.js 11 bytes {0} [built]
cjs require b [0] ./example.js 2:8-20
cjs require b [0] ./example.js 4:4-16
[2] ./~/a.js 11 {0} [built]
[2] ./~/a.js 11 bytes {0} [built]
cjs require a [0] ./example.js 1:8-20
chunk {1} 1.output.js 22 {0} [rendered]
chunk {1} 1.output.js 22 bytes {0} [rendered]
> [0] ./example.js 3:0-6:2
[3] ./~/c.js 11 {1} [built]
[3] ./~/c.js 11 bytes {1} [built]
require.ensure item c [0] ./example.js 3:0-6:2
[4] ./~/d.js 11 {1} [built]
[4] ./~/d.js 11 bytes {1} [built]
cjs require d [0] ./example.js 5:12-24
WARNING in output.js from UglifyJs
Dropping unused function argument require [./example.js:3,0]
Side effects in initialization of unused variable d [./example.js:5,0]
Side effects in initialization of unused variable a [./example.js:1,0]
Side effects in initialization of unused variable b [./example.js:2,0]

View File

@ -29,41 +29,41 @@ module.exports = 42
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -75,22 +75,10 @@ module.exports = 42
\********************/
/***/ function(module, exports, __webpack_require__) {
console.log(__webpack_require__(/*! ./cup1 */ 2));
console.log(__webpack_require__(/*! ./cup1 */ 1));
/***/ },
/* 1 */
/*!*********************!*\
!*** ./cup2.coffee ***!
\*********************/
/***/ function(module, exports, __webpack_require__) {
console.log("yeah coffee-script");
module.exports = 42;
/***/ },
/* 2 */
/*!*********************!*\
!*** ./cup1.coffee ***!
\*********************/
@ -99,13 +87,25 @@ module.exports = 42
module.exports = {
cool: "stuff",
answer: 42,
external: __webpack_require__(/*! ./cup2.coffee */ 1),
again: __webpack_require__(/*! ./cup2 */ 1)
external: __webpack_require__(/*! ./cup2.coffee */ 2),
again: __webpack_require__(/*! ./cup2 */ 2)
};
/***/ },
/* 2 */
/*!*********************!*\
!*** ./cup2.coffee ***!
\*********************/
/***/ function(module, exports) {
console.log("yeah coffee-script");
module.exports = 42;
/***/ }
/******/ ])
/******/ ]);
```
# Info
@ -113,35 +113,35 @@ module.exports = 42
## Uncompressed
```
Hash: 5ac3ee8063740090a5a9
Version: webpack 1.5.0
Time: 102ms
Asset Size Chunks Chunk Names
output.js 2157 0 [emitted] main
chunk {0} output.js (main) 206 [rendered]
Hash: ef589306f6baca460772
Version: webpack 1.9.10
Time: 163ms
Asset Size Chunks Chunk Names
output.js 2.05 kB 0 [emitted] main
chunk {0} output.js (main) 206 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 31 {0} [built]
[1] ./cup2.coffee 57 {0} [built]
cjs require ./cup2.coffee [2] ./cup1.coffee 4:12-36
cjs require ./cup2 [2] ./cup1.coffee 5:9-26
[2] ./cup1.coffee 118 {0} [built]
[0] ./example.js 31 bytes {0} [built]
[1] ./cup1.coffee 118 bytes {0} [built]
cjs require ./cup1 [0] ./example.js 1:12-29
[2] ./cup2.coffee 57 bytes {0} [built]
cjs require ./cup2.coffee [1] ./cup1.coffee 4:12-36
cjs require ./cup2 [1] ./cup1.coffee 5:9-26
```
## Minimized (uglify-js, no zip)
```
Hash: 995ff708cb8b0d9e0156
Version: webpack 1.5.0
Time: 153ms
Asset Size Chunks Chunk Names
output.js 377 0 [emitted] main
chunk {0} output.js (main) 206 [rendered]
Hash: 5ac3ee8063740090a5a9
Version: webpack 1.9.10
Time: 275ms
Asset Size Chunks Chunk Names
output.js 379 bytes 0 [emitted] main
chunk {0} output.js (main) 206 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 31 {0} [built]
[1] ./cup2.coffee 57 {0} [built]
[0] ./example.js 31 bytes {0} [built]
[1] ./cup2.coffee 57 bytes {0} [built]
cjs require ./cup2.coffee [2] ./cup1.coffee 4:12-36
cjs require ./cup2 [2] ./cup1.coffee 5:9-26
[2] ./cup1.coffee 118 {0} [built]
[2] ./cup1.coffee 118 bytes {0} [built]
cjs require ./cup1 [0] ./example.js 1:12-29
```

View File

@ -1 +1,3 @@
module
console.log "yeah coffee-script"
module.exports = 42

View File

@ -41,41 +41,41 @@ exports.add = function() {
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -108,7 +108,7 @@ exports.add = function() {
/*!*****************!*\
!*** ./math.js ***!
\*****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
exports.add = function() {
var sum = 0, i = 0, args = arguments, l = args.length;
@ -119,7 +119,7 @@ exports.add = function() {
};
/***/ }
/******/ ])
/******/ ]);
```
# Info
@ -128,32 +128,32 @@ exports.add = function() {
```
Hash: f20c1cdaf768293603f5
Version: webpack 1.5.0
Time: 47ms
Asset Size Chunks Chunk Names
output.js 2257 0 [emitted] main
chunk {0} output.js (main) 329 [rendered]
Version: webpack 1.9.10
Time: 69ms
Asset Size Chunks Chunk Names
output.js 2.15 kB 0 [emitted] main
chunk {0} output.js (main) 329 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 69 {0} [built]
[1] ./increment.js 98 {0} [built]
[0] ./example.js 69 bytes {0} [built]
[1] ./increment.js 98 bytes {0} [built]
cjs require ./increment [0] ./example.js 1:10-32
[2] ./math.js 162 {0} [built]
[2] ./math.js 162 bytes {0} [built]
cjs require ./math [1] ./increment.js 1:10-27
```
## Minimized (uglify-js, no zip)
```
Hash: fd25a122b2db47818529
Version: webpack 1.5.0
Time: 132ms
Asset Size Chunks Chunk Names
output.js 419 0 [emitted] main
chunk {0} output.js (main) 329 [rendered]
Hash: f20c1cdaf768293603f5
Version: webpack 1.9.10
Time: 197ms
Asset Size Chunks Chunk Names
output.js 419 bytes 0 [emitted] main
chunk {0} output.js (main) 329 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 69 {0} [built]
[1] ./increment.js 98 {0} [built]
[0] ./example.js 69 bytes {0} [built]
[1] ./increment.js 98 bytes {0} [built]
cjs require ./increment [0] ./example.js 1:10-32
[2] ./math.js 162 {0} [built]
[2] ./math.js 162 bytes {0} [built]
cjs require ./math [1] ./increment.js 1:10-27
```

View File

@ -79,41 +79,41 @@ module.exports = {
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -126,8 +126,8 @@ module.exports = {
/***/ function(module, exports, __webpack_require__) {
console.log(__webpack_require__(/*! a-component */ 1));
console.log(__webpack_require__(/*! b-component */ 5));
console.log(__webpack_require__(/*! c-component */ 3));
console.log(__webpack_require__(/*! b-component */ 7));
console.log(__webpack_require__(/*! c-component */ 9));
/***/ },
@ -137,70 +137,27 @@ module.exports = {
\****************************************************/
/***/ function(module, exports, __webpack_require__) {
__webpack_require__(/*! (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./style.css */ 9);
module.exports = __webpack_require__(/*! ./index.js */ 2);
__webpack_require__(/*! (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./style.css */ 2);
module.exports = __webpack_require__(/*! ./index.js */ 6);
/***/ },
/* 2 */
/*!*************************************************!*\
!*** ./components/webpack-a-component/index.js ***!
\*************************************************/
/*!********************************************************************************************************************************************************!*\
!*** (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css ***!
\********************************************************************************************************************************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = "A";
// style-loader: Adds some css to the DOM by adding a <style> tag
__webpack_require__(/*! (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js */ 3)
// The css code:
(__webpack_require__(/*! !(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css */ 4))
/***/ },
/* 3 */
/*!****************************************************!*\
!*** ./components/webpack-c-component (component) ***!
\****************************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./main.js */ 4);
/***/ },
/* 4 */
/*!************************************************!*\
!*** ./components/webpack-c-component/main.js ***!
\************************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = "C" + __webpack_require__(/*! a-component */ 1) + __webpack_require__(/*! webpack-a-component */ 1);
/***/ },
/* 5 */
/*!***********************************************!*\
!*** ./my-components/b-component (component) ***!
\***********************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./main.js */ 6);
/***/ },
/* 6 */
/*!*******************************************!*\
!*** ./my-components/b-component/main.js ***!
\*******************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = "B";
/***/ },
/* 7 */
/*!****************************************************************************************************!*\
!*** (webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css ***!
\****************************************************************************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports =
".a-component {\r\n\tdisplay: inline;\r\n\tbackground: url("+__webpack_require__(/*! ./image.png */ 10)+") repeat;\r\n}";
/***/ },
/* 8 */
/*!***********************************************************************!*\
!*** (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js ***!
\***********************************************************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
@ -218,28 +175,71 @@ module.exports = {
}
/***/ },
/* 9 */
/*!********************************************************************************************************************************************************!*\
!*** (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css ***!
\********************************************************************************************************************************************************/
/* 4 */
/*!****************************************************************************************************!*\
!*** (webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css ***!
\****************************************************************************************************/
/***/ function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
__webpack_require__(/*! (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js */ 8)
// The css code:
(__webpack_require__(/*! !(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css */ 7))
module.exports =
".a-component {\r\n\tdisplay: inline;\r\n\tbackground: url("+__webpack_require__(/*! ./image.png */ 5)+") repeat;\r\n}";
/***/ },
/* 10 */
/* 5 */
/*!**************************************************!*\
!*** ./components/webpack-a-component/image.png ***!
\**************************************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAOCAIAAABGj2DjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACNSURBVChTlZC7FQAREEWFylCKEoS6EalBKNWZEoR2zrLrWbO/Gzjjc9/MIep/upNS8t63+pXukCAE33ON4/vgdo3j+6zvkNuLBybn409MDo4UY9Ra09q2CD9bCIFkQkpZSumnB8PBwZRSzbHWthNkODiYc45qY8zZBBP52Yicc692MPHqfPm6q4N5PLVunPxwQxP50QkAAAAASUVORK5CYII="
/***/ },
/* 6 */
/*!*************************************************!*\
!*** ./components/webpack-a-component/index.js ***!
\*************************************************/
/***/ function(module, exports) {
module.exports = "A";
/***/ },
/* 7 */
/*!***********************************************!*\
!*** ./my-components/b-component (component) ***!
\***********************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./main.js */ 8);
/***/ },
/* 8 */
/*!*******************************************!*\
!*** ./my-components/b-component/main.js ***!
\*******************************************/
/***/ function(module, exports) {
module.exports = "B";
/***/ },
/* 9 */
/*!****************************************************!*\
!*** ./components/webpack-c-component (component) ***!
\****************************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./main.js */ 10);
/***/ },
/* 10 */
/*!************************************************!*\
!*** ./components/webpack-c-component/main.js ***!
\************************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = "C" + __webpack_require__(/*! a-component */ 1) + __webpack_require__(/*! webpack-a-component */ 1);
/***/ }
/******/ ])
/******/ ]);
```
# Info
@ -247,69 +247,69 @@ module.exports = {
## Uncompressed
```
Hash: ee244ed02aab17703d93
Version: webpack 1.5.0
Time: 145ms
Asset Size Chunks Chunk Names
output.js 6440 0 [emitted] main
chunk {0} output.js (main) 2037 [rendered]
Hash: ef237a02b9e268e274c7
Version: webpack 1.9.10
Time: 236ms
Asset Size Chunks Chunk Names
output.js 6.27 kB 0 [emitted] main
chunk {0} output.js (main) 2.04 kB [rendered]
> main [0] ./example.js
[0] ./example.js 114 {0} [built]
[1] ./components/webpack-a-component (component) 308 {0} [built]
[0] ./example.js 114 bytes {0} [built]
[1] ./components/webpack-a-component (component) 308 bytes {0} [built]
cjs require a-component [0] ./example.js 1:12-34
cjs require a-component [4] ./components/webpack-c-component/main.js 1:23-45
cjs require webpack-a-component [4] ./components/webpack-c-component/main.js 1:48-78
[2] ./components/webpack-a-component/index.js 21 {0} [built]
cjs require ./index.js [1] ./components/webpack-a-component (component) 2:17-38
[3] ./components/webpack-c-component (component) 38 {0} [built]
cjs require c-component [0] ./example.js 3:12-34
[4] ./components/webpack-c-component/main.js 79 {0} [built]
cjs require ./main.js [3] ./components/webpack-c-component (component) 1:17-37
[5] ./my-components/b-component (component) 38 {0} [built]
cjs require b-component [0] ./example.js 2:12-34
[6] ./my-components/b-component/main.js 21 {0} [built]
cjs require ./main.js [5] ./my-components/b-component (component) 1:17-37
[7] (webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 119 {0} [built]
cjs require !!(webpack)\node_modules\component-webpack-plugin\node_modules\css-loader\index.js!.\components\webpack-a-component\style.css [9] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 4:2-245
[8] (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js 458 {0} [built]
cjs require !(webpack)\node_modules\component-webpack-plugin\node_modules\style-loader\addStyle.js [9] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 2:0-137
[9] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 468 {0} [built]
cjs require a-component [10] ./components/webpack-c-component/main.js 1:23-45
cjs require webpack-a-component [10] ./components/webpack-c-component/main.js 1:48-78
[2] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 468 bytes {0} [built]
cjs require !(webpack)\node_modules\component-webpack-plugin\node_modules\style-loader\index.js!(webpack)\node_modules\component-webpack-plugin\node_modules\css-loader\index.js!./style.css [1] ./components/webpack-a-component (component) 1:0-267
[10] ./components/webpack-a-component/image.png 373 {0} [built]
cjs require ./image.png [7] (webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 2:62-84
[3] (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js 458 bytes {0} [built]
cjs require !(webpack)\node_modules\component-webpack-plugin\node_modules\style-loader\addStyle.js [2] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 2:0-137
[4] (webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 119 bytes {0} [built]
cjs require !!(webpack)\node_modules\component-webpack-plugin\node_modules\css-loader\index.js!.\components\webpack-a-component\style.css [2] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 4:2-245
[5] ./components/webpack-a-component/image.png 373 bytes {0} [built]
cjs require ./image.png [4] (webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 2:62-84
[6] ./components/webpack-a-component/index.js 21 bytes {0} [built]
cjs require ./index.js [1] ./components/webpack-a-component (component) 2:17-38
[7] ./my-components/b-component (component) 38 bytes {0} [built]
cjs require b-component [0] ./example.js 2:12-34
[8] ./my-components/b-component/main.js 21 bytes {0} [built]
cjs require ./main.js [7] ./my-components/b-component (component) 1:17-37
[9] ./components/webpack-c-component (component) 38 bytes {0} [built]
cjs require c-component [0] ./example.js 3:12-34
[10] ./components/webpack-c-component/main.js 79 bytes {0} [built]
cjs require ./main.js [9] ./components/webpack-c-component (component) 1:17-37
```
## Minimized (uglify-js, no zip)
```
Hash: aeabeaa87b8c6dd14f89
Version: webpack 1.5.0
Time: 199ms
Asset Size Chunks Chunk Names
output.js 1190 0 [emitted] main
chunk {0} output.js (main) 2010 [rendered]
Hash: 05b694a2ac91bdc14785
Version: webpack 1.9.10
Time: 321ms
Asset Size Chunks Chunk Names
output.js 1.2 kB 0 [emitted] main
chunk {0} output.js (main) 2.01 kB [rendered]
> main [0] ./example.js
[0] ./example.js 114 {0} [built]
[1] ./components/webpack-a-component (component) 308 {0} [built]
[0] ./example.js 114 bytes {0} [built]
[1] ./components/webpack-a-component (component) 308 bytes {0} [built]
cjs require a-component [0] ./example.js 1:12-34
cjs require a-component [4] ./components/webpack-c-component/main.js 1:23-45
cjs require webpack-a-component [4] ./components/webpack-c-component/main.js 1:48-78
[2] ./components/webpack-a-component/index.js 21 {0} [built]
[2] ./components/webpack-a-component/index.js 21 bytes {0} [built]
cjs require ./index.js [1] ./components/webpack-a-component (component) 2:17-38
[3] ./components/webpack-c-component (component) 38 {0} [built]
[3] ./components/webpack-c-component (component) 38 bytes {0} [built]
cjs require c-component [0] ./example.js 3:12-34
[4] ./components/webpack-c-component/main.js 79 {0} [built]
[4] ./components/webpack-c-component/main.js 79 bytes {0} [built]
cjs require ./main.js [3] ./components/webpack-c-component (component) 1:17-37
[5] ./my-components/b-component (component) 38 {0} [built]
[5] ./my-components/b-component (component) 38 bytes {0} [built]
cjs require b-component [0] ./example.js 2:12-34
[6] ./my-components/b-component/main.js 21 {0} [built]
[6] ./my-components/b-component/main.js 21 bytes {0} [built]
cjs require ./main.js [5] ./my-components/b-component (component) 1:17-37
[7] (webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 92 {0} [built]
[7] (webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 92 bytes {0} [built]
cjs require !!(webpack)\node_modules\component-webpack-plugin\node_modules\css-loader\index.js!.\components\webpack-a-component\style.css [9] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 4:2-245
[8] (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js 458 {0} [built]
[8] (webpack)/~/component-webpack-plugin/~/style-loader/addStyle.js 458 bytes {0} [built]
cjs require !(webpack)\node_modules\component-webpack-plugin\node_modules\style-loader\addStyle.js [9] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 2:0-137
[9] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 468 {0} [built]
[9] (webpack)/~/component-webpack-plugin/~/style-loader!(webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 468 bytes {0} [built]
cjs require !(webpack)\node_modules\component-webpack-plugin\node_modules\style-loader\index.js!(webpack)\node_modules\component-webpack-plugin\node_modules\css-loader\index.js!./style.css [1] ./components/webpack-a-component (component) 1:0-267
[10] ./components/webpack-a-component/image.png 373 {0} [built]
[10] ./components/webpack-a-component/image.png 373 bytes {0} [built]
cjs require ./image.png [7] (webpack)/~/component-webpack-plugin/~/css-loader!./components/webpack-a-component/style.css 2:47-69
```

View File

@ -39,41 +39,41 @@ module.exports = {
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -92,12 +92,12 @@ module.exports = {
/*!*******************!*\
!*** ./style.css ***!
\*******************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }
/******/ ])
/******/ ]);
```
# js/style.css
@ -113,53 +113,53 @@ body {
## Uncompressed
```
Hash: 964c893cb950ed2e3340
Version: webpack 1.5.0
Time: 166ms
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
output.js 1809 0 [emitted] main
style.css 69 0 [emitted] main
chunk {0} output.js, style.css (main) 64 [rendered]
Hash: 6511a21f95bc1fb98aa5
Version: webpack 1.9.10
Time: 333ms
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
output.js 1.7 kB 0 [emitted] main
style.css 69 bytes 0 [emitted] main
chunk {0} output.js, style.css (main) 64 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 23 {0} [built]
[1] ./style.css 41 {0} [built]
[0] ./example.js 23 bytes {0} [built]
[1] ./style.css 41 bytes {0} [built]
cjs require ./style.css [0] ./example.js 1:0-22
Child extract-text-webpack-plugin:
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\style.css 633 [rendered]
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
chunk {0} extract-text-webpack-plugin-output-filename 1.77 kB [rendered]
> [0] (webpack)/~/css-loader!./style.css
[0] (webpack)/~/css-loader!./style.css 200 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./style.css 1:27-101
[2] ./image.png 81 {0} [built]
[0] (webpack)/~/css-loader!./style.css 184 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./style.css 1:27-85
[2] ./image.png 81 bytes {0} [built]
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:56-78
```
## Minimized (uglify-js, no zip)
```
Hash: 773f1220b8a1a2d9560d
Version: webpack 1.5.0
Time: 184ms
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
output.js 240 0 [emitted] main
style.css 61 0 [emitted] main
chunk {0} output.js, style.css (main) 64 [rendered]
Hash: f429175fc77e526a48ea
Version: webpack 1.9.10
Time: 425ms
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
output.js 243 bytes 0 [emitted] main
style.css 61 bytes 0 [emitted] main
chunk {0} output.js, style.css (main) 64 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 23 {0} [built]
[1] ./style.css 41 {0} [built]
[0] ./example.js 23 bytes {0} [built]
[1] ./style.css 41 bytes {0} [built]
cjs require ./style.css [0] ./example.js 1:0-22
Child extract-text-webpack-plugin:
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\style.css 620 [rendered]
Asset Size Chunks Chunk Names
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
chunk {0} extract-text-webpack-plugin-output-filename 1.76 kB [rendered]
> [0] (webpack)/~/css-loader!./style.css
[0] (webpack)/~/css-loader!./style.css 187 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./style.css 1:27-101
[2] ./image.png 81 {0} [built]
[0] (webpack)/~/css-loader!./style.css 171 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./style.css 1:27-85
[2] ./image.png 81 bytes {0} [built]
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:48-70
```

View File

@ -64,41 +64,41 @@ module.exports = {"this is": "z"};
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -106,19 +106,21 @@ module.exports = {"this is": "z"};
/******/ ((function(modules) {
// Check all modules for deduplicated modules
for(var i in modules) {
switch(typeof modules[i]) {
case "number":
// Module is a copy of another module
modules[i] = modules[modules[i]];
break;
case "object":
// Module can be created from a template
modules[i] = (function(_m) {
var args = _m.slice(1), fn = modules[_m[0]];
return function (a,b,c) {
fn.apply(null, [a,b,c].concat(args));
};
}(modules[i]));
if(Object.prototype.hasOwnProperty.call(modules, i)) {
switch(typeof modules[i]) {
case "number":
// Module is a copy of another module
modules[i] = modules[modules[i]];
break;
case "object":
// Module can be created from a template
modules[i] = (function(_m) {
var args = _m.slice(1), fn = modules[_m[0]];
return function (a,b,c) {
fn.apply(null, [a,b,c].concat(args));
};
}(modules[i]));
}
}
}
return modules;
@ -129,43 +131,43 @@ module.exports = {"this is": "z"};
\********************/
/***/ function(module, exports, __webpack_require__) {
var a = __webpack_require__(/*! ./a */ 2);
var a = __webpack_require__(/*! ./a */ 1);
var b = __webpack_require__(/*! ./b */ 5);
a.x !== b.x;
a.y !== b.y;
/***/ },
/* 1 */
/*!**************!*\
!*** ./z.js ***!
\**************/
/***/ function(module, exports, __webpack_require__) {
module.exports = {"this is": "z"};
/***/ },
/* 2 */
/*!********************!*\
!*** ./a/index.js ***!
\********************/
[8, 3, 4],
/* 3 */
[8, 2, 3],
/* 2 */
/*!****************!*\
!*** ./a/x.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = {"this is": "x"};
/***/ },
/* 4 */
/* 3 */
/*!****************!*\
!*** ./a/y.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = {"this is": "y", "but in": "a"};
/***/ },
/* 4 */
/*!**************!*\
!*** ./z.js ***!
\**************/
/***/ function(module, exports) {
module.exports = {"this is": "z"};
/***/ },
/* 5 */
/*!********************!*\
@ -176,30 +178,30 @@ module.exports = {"this is": "z"};
/*!****************!*\
!*** ./b/x.js ***!
\****************/
3,
2,
/* 7 */
/*!****************!*\
!*** ./b/y.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = {"this is": "y", "but in": "b"};
/***/ },
/* 8 */
/*!***********************************!*\
!*** template of 2 referencing 1 ***!
!*** template of 1 referencing 4 ***!
\***********************************/
/***/ function(module, exports, __webpack_require__, __webpack_module_template_argument_0__, __webpack_module_template_argument_1__) {
module.exports = {
x: __webpack_require__(__webpack_module_template_argument_0__),
y: __webpack_require__(__webpack_module_template_argument_1__),
z: __webpack_require__(/*! ../z */ 1)
z: __webpack_require__(/*! ../z */ 4)
}
/***/ }
/******/ ])))
/******/ ])));
```
# Info
@ -207,61 +209,61 @@ module.exports = {"this is": "z"};
## Uncompressed
```
Hash: 773919bf281c4e7d0ab1
Version: webpack 1.5.0
Time: 71ms
Asset Size Chunks Chunk Names
output.js 3657 0 [emitted] main
chunk {0} output.js (main) 528 [rendered]
Hash: 50871f02839c7de27639
Version: webpack 1.9.10
Time: 90ms
Asset Size Chunks Chunk Names
output.js 3.56 kB 0 [emitted] main
chunk {0} output.js (main) 528 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 76 {0} [built]
[1] ./z.js 34 {0} [built]
cjs require ../z [2] ./a/index.js 4:4-19
cjs require ../z [5] ./b/index.js 4:4-19
[2] ./a/index.js 84 {0} [built]
[0] ./example.js 76 bytes {0} [built]
[1] ./a/index.js 84 bytes {0} [built]
cjs require ./a [0] ./example.js 1:8-22
[3] ./a/x.js 34 {0} [built]
cjs require ./x [2] ./a/index.js 2:4-18
[4] ./a/y.js 49 {0} [built]
cjs require ./y [2] ./a/index.js 3:4-18
[5] ./b/index.js 84 {0} [built]
[2] ./a/x.js 34 bytes {0} [built]
cjs require ./x [1] ./a/index.js 2:4-18
[3] ./a/y.js 49 bytes {0} [built]
cjs require ./y [1] ./a/index.js 3:4-18
[4] ./z.js 34 bytes {0} [built]
cjs require ../z [1] ./a/index.js 4:4-19
cjs require ../z [5] ./b/index.js 4:4-19
[5] ./b/index.js 84 bytes {0} [built]
cjs require ./b [0] ./example.js 2:8-22
[6] ./b/x.js 34 {0} [built]
[6] ./b/x.js 34 bytes {0} [built]
cjs require ./x [5] ./b/index.js 2:4-18
[7] ./b/y.js 49 {0} [built]
[7] ./b/y.js 49 bytes {0} [built]
cjs require ./y [5] ./b/index.js 3:4-18
[8] template of 2 referencing 1 84 {0} [not cacheable] [built]
template 1 [2] ./a/index.js
template 1 [5] ./b/index.js
[8] template of 1 referencing 4 84 bytes {0} [not cacheable] [built]
template 4 [1] ./a/index.js
template 4 [5] ./b/index.js
```
## Minimized (uglify-js, no zip)
```
Hash: 46caf7edf6be4af6405c
Version: webpack 1.5.0
Time: 124ms
Asset Size Chunks Chunk Names
output.js 724 0 [emitted] main
chunk {0} output.js (main) 528 [rendered]
Hash: 8bc9bb7c8faa6927456d
Version: webpack 1.9.10
Time: 207ms
Asset Size Chunks Chunk Names
output.js 777 bytes 0 [emitted] main
chunk {0} output.js (main) 528 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 76 {0} [built]
[1] ./z.js 34 {0} [built]
[0] ./example.js 76 bytes {0} [built]
[1] ./z.js 34 bytes {0} [built]
cjs require ../z [2] ./a/index.js 4:4-19
cjs require ../z [5] ./b/index.js 4:4-19
[2] ./a/index.js 84 {0} [built]
[2] ./a/index.js 84 bytes {0} [built]
cjs require ./a [0] ./example.js 1:8-22
[3] ./a/x.js 34 {0} [built]
[3] ./a/x.js 34 bytes {0} [built]
cjs require ./x [2] ./a/index.js 2:4-18
[4] ./a/y.js 49 {0} [built]
[4] ./a/y.js 49 bytes {0} [built]
cjs require ./y [2] ./a/index.js 3:4-18
[5] ./b/index.js 84 {0} [built]
[5] ./b/index.js 84 bytes {0} [built]
cjs require ./b [0] ./example.js 2:8-22
[6] ./b/x.js 34 {0} [built]
[6] ./b/x.js 34 bytes {0} [built]
cjs require ./x [5] ./b/index.js 2:4-18
[7] ./b/y.js 49 {0} [built]
[7] ./b/y.js 49 bytes {0} [built]
cjs require ./y [5] ./b/index.js 3:4-18
[8] template of 2 referencing 1 84 {0} [not cacheable] [built]
[8] template of 2 referencing 1 84 bytes {0} [not cacheable] [built]
template 1 [2] ./a/index.js
template 1 [5] ./b/index.js
```

View File

@ -100,7 +100,7 @@ console.log(require("beta/b"));
/*!*********************************************!*\
!*** external "alpha_fda802f3c408a66ef744" ***!
\*********************************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = alpha_fda802f3c408a66ef744;
@ -127,7 +127,7 @@ console.log(require("beta/b"));
/*!********************************************!*\
!*** external "beta_fda802f3c408a66ef744" ***!
\********************************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = beta_fda802f3c408a66ef744;
@ -150,10 +150,10 @@ console.log(require("beta/b"));
```
Hash: 0d8279ed7b443d36b536
Version: webpack 1.9.5
Time: 84ms
Version: webpack 1.9.10
Time: 78ms
Asset Size Chunks Chunk Names
output.js 3.66 kB 0 [emitted] main
output.js 3.62 kB 0 [emitted] main
chunk {0} output.js (main) 397 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 145 bytes {0} [built]
@ -164,10 +164,10 @@ chunk {0} output.js (main) 397 bytes [rendered]
```
Hash: 1e9d431b3cebd3bcea12
Version: webpack 1.9.5
Time: 170ms
Version: webpack 1.9.10
Time: 201ms
Asset Size Chunks Chunk Names
output.js 541 bytes 0 [emitted] main
output.js 537 bytes 0 [emitted] main
chunk {0} output.js (main) 397 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 145 bytes {0} [built]

View File

@ -2,7 +2,7 @@
``` javascript
var path = require("path");
var DllPlugin = require("../../lib/DllPlugin");
var webpack = require("../../");
module.exports = {
entry: {
alpha: ["./alpha", "./a"],
@ -14,7 +14,7 @@ module.exports = {
library: "[name]_[hash]"
},
plugins: [
new DllPlugin({
new webpack.DllPlugin({
path: path.join(__dirname, "js", "[name]-manifest.json"),
name: "[name]_[hash]"
})
@ -82,7 +82,7 @@ var alpha_fda802f3c408a66ef744 =
/*!******************!*\
!*** ./alpha.js ***!
\******************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "alpha";
@ -91,7 +91,7 @@ var alpha_fda802f3c408a66ef744 =
/*!**************!*\
!*** ./a.js ***!
\**************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "a";
@ -117,11 +117,11 @@ var alpha_fda802f3c408a66ef744 =
```
Hash: fda802f3c408a66ef744
Version: webpack 1.9.5
Time: 47ms
Version: webpack 1.9.10
Time: 69ms
Asset Size Chunks Chunk Names
MyDll.alpha.js 1.88 kB 0 [emitted] alpha
MyDll.beta.js 1.89 kB 1 [emitted] beta
MyDll.alpha.js 1.84 kB 0 [emitted] alpha
MyDll.beta.js 1.85 kB 1 [emitted] beta
chunk {0} MyDll.alpha.js (alpha) 58 bytes [rendered]
> alpha [0] dll alpha
[0] dll alpha 12 bytes {0} [built]
@ -142,11 +142,11 @@ chunk {1} MyDll.beta.js (beta) 57 bytes [rendered]
```
Hash: 28b01778c3ed267edad7
Version: webpack 1.9.5
Time: 130ms
Version: webpack 1.9.10
Time: 173ms
Asset Size Chunks Chunk Names
MyDll.beta.js 330 bytes 0 [emitted] beta
MyDll.alpha.js 330 bytes 1 [emitted] alpha
MyDll.beta.js 326 bytes 0 [emitted] beta
MyDll.alpha.js 326 bytes 1 [emitted] alpha
chunk {0} MyDll.beta.js (beta) 57 bytes [rendered]
> beta [0] dll beta
[0] dll beta 12 bytes {0} [built]

View File

@ -58,7 +58,7 @@ module.exports = {
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 0:0
/******/ 3:0
/******/ };
/******/ // The require function
@ -104,7 +104,7 @@ module.exports = {
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"1":"pageC","2":"pageB","3":"pageA"}[chunkId]||chunkId) + ".js";
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"0":"pageA","1":"pageB","2":"pageC"}[chunkId]||chunkId) + ".js";
/******/ head.appendChild(script);
/******/ }
/******/ };
@ -137,7 +137,7 @@ module.exports = {
/*!*******************!*\
!*** ./vendor.js ***!
\*******************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "Vendor";
@ -148,12 +148,12 @@ module.exports = {
# js/pageA.js
``` javascript
webpackJsonp([3],[
webpackJsonp([0],[
/* 0 */
/*!******************!*\
!*** ./pageA.js ***!
\******************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "pageA";
@ -166,41 +166,41 @@ webpackJsonp([3],[
## Uncompressed
```
Hash: 7ba2182676e9cab55532
Version: webpack 1.8.11
Time: 68ms
Hash: c9705e8f8c57911437c8
Version: webpack 1.9.10
Time: 80ms
Asset Size Chunks Chunk Names
vendor.js 4.06 kB 0 [emitted] vendor
pageC.js 193 bytes 1 [emitted] pageC
pageB.js 193 bytes 2 [emitted] pageB
pageA.js 193 bytes 3 [emitted] pageA
chunk {0} vendor.js (vendor) 54 bytes [rendered]
> vendor [0] multi vendor
[0] multi vendor 28 bytes {0} [built]
[1] ./vendor.js 26 bytes {0} [built]
single entry ./vendor [0] multi vendor
chunk {1} pageC.js (pageC) 25 bytes {0} [rendered]
> pageC [0] ./pageC.js
[0] ./pageC.js 25 bytes {1} [built]
chunk {2} pageB.js (pageB) 25 bytes {0} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 25 bytes {2} [built]
chunk {3} pageA.js (pageA) 25 bytes {0} [rendered]
pageA.js 172 bytes 0 [emitted] pageA
pageB.js 172 bytes 1 [emitted] pageB
pageC.js 172 bytes 2 [emitted] pageC
vendor.js 4.04 kB 3 [emitted] vendor
chunk {0} pageA.js (pageA) 25 bytes {3} [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 25 bytes {3} [built]
[0] ./pageA.js 25 bytes {0} [built]
chunk {1} pageB.js (pageB) 25 bytes {3} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 25 bytes {1} [built]
chunk {2} pageC.js (pageC) 25 bytes {3} [rendered]
> pageC [0] ./pageC.js
[0] ./pageC.js 25 bytes {2} [built]
chunk {3} vendor.js (vendor) 54 bytes [rendered]
> vendor [0] multi vendor
[0] multi vendor 28 bytes {3} [built]
[1] ./vendor.js 26 bytes {3} [built]
single entry ./vendor [0] multi vendor
```
## Minimized (uglify-js, no zip)
```
Hash: 7ba2182676e9cab55532
Version: webpack 1.8.11
Time: 194ms
Version: webpack 1.9.10
Time: 206ms
Asset Size Chunks Chunk Names
vendor.js 836 bytes 0 [emitted] vendor
pageC.js 55 bytes 1 [emitted] pageC
pageB.js 55 bytes 2 [emitted] pageB
pageA.js 55 bytes 3 [emitted] pageA
vendor.js 834 bytes 0 [emitted] vendor
pageC.js 53 bytes 1 [emitted] pageC
pageB.js 53 bytes 2 [emitted] pageB
pageA.js 53 bytes 3 [emitted] pageA
chunk {0} vendor.js (vendor) 54 bytes [rendered]
> vendor [0] multi vendor
[0] multi vendor 28 bytes {0} [built]

View File

@ -61,41 +61,41 @@ module.exports = {
return /******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -117,7 +117,7 @@ return /******/ (function(modules) { // webpackBootstrap
/*!**********************!*\
!*** external "add" ***!
\**********************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
@ -126,13 +126,14 @@ return /******/ (function(modules) { // webpackBootstrap
/*!***************************************************************************************************************!*\
!*** external {"root":"subtract","commonjs2":"./subtract","commonjs":["./math","subtract"],"amd":"subtract"} ***!
\***************************************************************************************************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_2__;
/***/ }
/******/ ])
});
;
```
# Info
@ -141,26 +142,26 @@ return /******/ (function(modules) { // webpackBootstrap
```
Hash: 320ff2cedec78f734047
Version: webpack 1.5.0
Time: 32ms
Asset Size Chunks Chunk Names
output.js 3009 0 [emitted] main
chunk {0} output.js (main) 197 [rendered]
Version: webpack 1.9.10
Time: 67ms
Asset Size Chunks Chunk Names
output.js 2.88 kB 0 [emitted] main
chunk {0} output.js (main) 197 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 113 {0} [built]
[0] ./example.js 113 bytes {0} [built]
+ 2 hidden modules
```
## Minimized (uglify-js, no zip)
```
Hash: 61dea4cfa2544dc85e83
Version: webpack 1.5.0
Time: 86ms
Asset Size Chunks Chunk Names
output.js 706 0 [emitted] main
chunk {0} output.js (main) 197 [rendered]
Hash: 320ff2cedec78f734047
Version: webpack 1.9.10
Time: 170ms
Asset Size Chunks Chunk Names
output.js 710 bytes 0 [emitted] main
chunk {0} output.js (main) 197 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 113 {0} [built]
[0] ./example.js 113 bytes {0} [built]
+ 2 hidden modules
```

View File

@ -66,50 +66,50 @@ module.exports = {
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ while(callbacks.length)
/******/ callbacks.shift().call(null, __webpack_require__);
/******/
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 2:0
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -121,20 +121,21 @@ module.exports = {
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -146,26 +147,26 @@ module.exports = {
\********************/
/***/ function(module, exports, __webpack_require__) {
(function(/* require */) {var __WEBPACK_REMAINING_CHUNKS__ = 3;var __WEBPACK_CALLBACK__ = function() {if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}(__webpack_require__));};__webpack_require__.e(0, __WEBPACK_CALLBACK__);__webpack_require__.e(1, __WEBPACK_CALLBACK__);__webpack_require__.e(5, __WEBPACK_CALLBACK__);}());
(function(/* require */) {var __WEBPACK_REMAINING_CHUNKS__ = 3;var __WEBPACK_CALLBACK__ = function() {if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}(__webpack_require__));};__webpack_require__.e(7, __WEBPACK_CALLBACK__);__webpack_require__.e(6, __WEBPACK_CALLBACK__);__webpack_require__.e(1, __WEBPACK_CALLBACK__);}());
(function(/* nsure */) {var __WEBPACK_REMAINING_CHUNKS__ = 3;var __WEBPACK_CALLBACK__ = function() {if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (function(require) {
__webpack_require__(/*! ./b */ 2);
__webpack_require__(/*! ./d */ 4);
}(__webpack_require__));};__webpack_require__.e(0, __WEBPACK_CALLBACK__);__webpack_require__.e(1, __WEBPACK_CALLBACK__);__webpack_require__.e(4, __WEBPACK_CALLBACK__);}());
}(__webpack_require__));};__webpack_require__.e(7, __WEBPACK_CALLBACK__);__webpack_require__.e(6, __WEBPACK_CALLBACK__);__webpack_require__.e(2, __WEBPACK_CALLBACK__);}());
(function(/* nsure */) {var __WEBPACK_REMAINING_CHUNKS__ = 2;var __WEBPACK_CALLBACK__ = function() {if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (function(require) {
__webpack_require__(/*! ./a */ 1);
(function(/* nsure */) {var __WEBPACK_REMAINING_CHUNKS__ = 2;var __WEBPACK_CALLBACK__ = function() {if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (function(require) {
__webpack_require__(/*! ./f */ 6);
}(__webpack_require__));};__webpack_require__.e(0, __WEBPACK_CALLBACK__);__webpack_require__.e(7, __WEBPACK_CALLBACK__);}());
}(__webpack_require__));};__webpack_require__.e(7, __WEBPACK_CALLBACK__);__webpack_require__.e(4, __WEBPACK_CALLBACK__);}());
(function(/* nsure */) {var __WEBPACK_REMAINING_CHUNKS__ = 2;var __WEBPACK_CALLBACK__ = function() {if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (function(require) {
__webpack_require__(/*! ./g */ 7);
}(__webpack_require__));};__webpack_require__.e(0, __WEBPACK_CALLBACK__);__webpack_require__.e(6, __WEBPACK_CALLBACK__);}());
}(__webpack_require__));};__webpack_require__.e(1, __WEBPACK_CALLBACK__);__webpack_require__.e(3, __WEBPACK_CALLBACK__);}());
}(__webpack_require__));};__webpack_require__.e(7, __WEBPACK_CALLBACK__);__webpack_require__.e(5, __WEBPACK_CALLBACK__);}());
}(__webpack_require__));};__webpack_require__.e(6, __WEBPACK_CALLBACK__);__webpack_require__.e(3, __WEBPACK_CALLBACK__);}());
/***/ }
/******/ ])
/******/ ]);
```
# Info
@ -173,126 +174,117 @@ module.exports = {
## Uncompressed
```
Hash: d802167b5bd787d676e6
Version: webpack 1.5.0
Time: 62ms
Asset Size Chunks Chunk Names
0.output.js 180 0 [emitted] async2
1.output.js 186 1 [emitted] async1
output.js 5727 2 [emitted] main
3.output.js 180 3 [emitted]
4.output.js 180 4 [emitted]
5.output.js 180 5 [emitted]
6.output.js 180 6 [emitted]
7.output.js 180 7 [emitted]
chunk {0} 0.output.js (async2) 21 {2} {3} [rendered]
> async commons [0] ./example.js 1:0-52
> async commons [0] ./example.js 3:0-6:2
> duplicate async commons [0] ./example.js 10:1-12:3
> duplicate async commons [0] ./example.js 13:1-15:3
[2] ./b.js 21 {0} [built]
amd require ./b [0] ./example.js 1:0-52
cjs require ./b [0] ./example.js 4:1-15
require.ensure item ./b [0] ./example.js 10:1-12:3
require.ensure item ./b [0] ./example.js 13:1-15:3
chunk {1} 1.output.js (async1) 21 {2} [rendered]
Hash: 95201f98f0e200184c65
Version: webpack 1.9.10
Time: 97ms
Asset Size Chunks Chunk Names
output.js 5.61 kB 0 [emitted] main
1.output.js 159 bytes 1 [emitted]
2.output.js 159 bytes 2 [emitted]
3.output.js 159 bytes 3 [emitted]
4.output.js 159 bytes 4 [emitted]
5.output.js 159 bytes 5 [emitted]
6.output.js 165 bytes 6 [emitted] async1
7.output.js 159 bytes 7 [emitted] async2
chunk {0} output.js (main) 362 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 362 bytes {0} [built]
chunk {1} 1.output.js 21 bytes {0} [rendered]
> [0] ./example.js 1:0-52
[3] ./c.js 21 bytes {1} [built]
amd require ./c [0] ./example.js 1:0-52
chunk {2} 2.output.js 21 bytes {0} [rendered]
> [0] ./example.js 3:0-6:2
[4] ./d.js 21 bytes {2} [built]
cjs require ./d [0] ./example.js 5:1-15
chunk {3} 3.output.js 21 bytes {0} [rendered]
> [0] ./example.js 8:0-16:2
[5] ./e.js 21 bytes {3} [built]
require.ensure item ./e [0] ./example.js 8:0-16:2
chunk {4} 4.output.js 21 bytes {3} [rendered]
> [0] ./example.js 10:1-12:3
[6] ./f.js 21 bytes {4} [built]
cjs require ./f [0] ./example.js 11:2-16
chunk {5} 5.output.js 21 bytes {3} [rendered]
> [0] ./example.js 13:1-15:3
[7] ./g.js 21 bytes {5} [built]
cjs require ./g [0] ./example.js 14:2-16
chunk {6} 6.output.js (async1) 21 bytes {0} [rendered]
> async commons [0] ./example.js 1:0-52
> async commons [0] ./example.js 3:0-6:2
> async commons [0] ./example.js 8:0-16:2
[1] ./a.js 21 {1} [built]
[1] ./a.js 21 bytes {6} [built]
amd require ./a [0] ./example.js 1:0-52
require.ensure item ./a [0] ./example.js 3:0-6:2
require.ensure item ./a [0] ./example.js 8:0-16:2
cjs require ./a [0] ./example.js 9:1-15
chunk {2} output.js (main) 362 [rendered]
> main [0] ./example.js
[0] ./example.js 362 {2} [built]
chunk {3} 3.output.js 21 {2} [rendered]
> [0] ./example.js 8:0-16:2
[5] ./e.js 21 {3} [built]
require.ensure item ./e [0] ./example.js 8:0-16:2
chunk {4} 4.output.js 21 {2} [rendered]
> [0] ./example.js 3:0-6:2
[4] ./d.js 21 {4} [built]
cjs require ./d [0] ./example.js 5:1-15
chunk {5} 5.output.js 21 {2} [rendered]
> [0] ./example.js 1:0-52
[3] ./c.js 21 {5} [built]
amd require ./c [0] ./example.js 1:0-52
chunk {6} 6.output.js 21 {3} [rendered]
> [0] ./example.js 13:1-15:3
[7] ./g.js 21 {6} [built]
cjs require ./g [0] ./example.js 14:2-16
chunk {7} 7.output.js 21 {3} [rendered]
> [0] ./example.js 10:1-12:3
[6] ./f.js 21 {7} [built]
cjs require ./f [0] ./example.js 11:2-16
chunk {7} 7.output.js (async2) 21 bytes {0} {3} [rendered]
> async commons [0] ./example.js 1:0-52
> async commons [0] ./example.js 3:0-6:2
> duplicate async commons [0] ./example.js 10:1-12:3
> duplicate async commons [0] ./example.js 13:1-15:3
[2] ./b.js 21 bytes {7} [built]
amd require ./b [0] ./example.js 1:0-52
cjs require ./b [0] ./example.js 4:1-15
require.ensure item ./b [0] ./example.js 10:1-12:3
require.ensure item ./b [0] ./example.js 13:1-15:3
```
## Minimized (uglify-js, no zip)
```
Hash: e7c7815873cbcaadbd7d
Version: webpack 1.5.0
Time: 169ms
Asset Size Chunks Chunk Names
0.output.js 49 0 [emitted] async2
1.output.js 48 1 [emitted] async1
output.js 1192 2 [emitted] main
3.output.js 49 3 [emitted]
4.output.js 49 4 [emitted]
5.output.js 49 5 [emitted]
6.output.js 49 6 [emitted]
7.output.js 49 7 [emitted]
chunk {0} 0.output.js (async2) 21 {2} {3} [rendered]
Hash: 9e4bffc9a8df97d12921
Version: webpack 1.9.10
Time: 286ms
Asset Size Chunks Chunk Names
0.output.js 51 bytes 0 [emitted] async2
1.output.js 50 bytes 1 [emitted] async1
output.js 1.2 kB 2 [emitted] main
3.output.js 51 bytes 3 [emitted]
4.output.js 51 bytes 4 [emitted]
5.output.js 51 bytes 5 [emitted]
6.output.js 51 bytes 6 [emitted]
7.output.js 51 bytes 7 [emitted]
chunk {0} 0.output.js (async2) 21 bytes {2} {3} [rendered]
> async commons [0] ./example.js 1:0-52
> async commons [0] ./example.js 3:0-6:2
> duplicate async commons [0] ./example.js 10:1-12:3
> duplicate async commons [0] ./example.js 13:1-15:3
[2] ./b.js 21 {0} [built]
[2] ./b.js 21 bytes {0} [built]
amd require ./b [0] ./example.js 1:0-52
cjs require ./b [0] ./example.js 4:1-15
require.ensure item ./b [0] ./example.js 10:1-12:3
require.ensure item ./b [0] ./example.js 13:1-15:3
chunk {1} 1.output.js (async1) 21 {2} [rendered]
chunk {1} 1.output.js (async1) 21 bytes {2} [rendered]
> async commons [0] ./example.js 1:0-52
> async commons [0] ./example.js 3:0-6:2
> async commons [0] ./example.js 8:0-16:2
[1] ./a.js 21 {1} [built]
[1] ./a.js 21 bytes {1} [built]
amd require ./a [0] ./example.js 1:0-52
require.ensure item ./a [0] ./example.js 3:0-6:2
require.ensure item ./a [0] ./example.js 8:0-16:2
cjs require ./a [0] ./example.js 9:1-15
chunk {2} output.js (main) 362 [rendered]
chunk {2} output.js (main) 362 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 362 {2} [built]
chunk {3} 3.output.js 21 {2} [rendered]
[0] ./example.js 362 bytes {2} [built]
chunk {3} 3.output.js 21 bytes {2} [rendered]
> [0] ./example.js 8:0-16:2
[5] ./e.js 21 {3} [built]
[5] ./e.js 21 bytes {3} [built]
require.ensure item ./e [0] ./example.js 8:0-16:2
chunk {4} 4.output.js 21 {2} [rendered]
chunk {4} 4.output.js 21 bytes {2} [rendered]
> [0] ./example.js 3:0-6:2
[4] ./d.js 21 {4} [built]
[4] ./d.js 21 bytes {4} [built]
cjs require ./d [0] ./example.js 5:1-15
chunk {5} 5.output.js 21 {2} [rendered]
chunk {5} 5.output.js 21 bytes {2} [rendered]
> [0] ./example.js 1:0-52
[3] ./c.js 21 {5} [built]
[3] ./c.js 21 bytes {5} [built]
amd require ./c [0] ./example.js 1:0-52
chunk {6} 6.output.js 21 {3} [rendered]
chunk {6} 6.output.js 21 bytes {3} [rendered]
> [0] ./example.js 13:1-15:3
[7] ./g.js 21 {6} [built]
[7] ./g.js 21 bytes {6} [built]
cjs require ./g [0] ./example.js 14:2-16
chunk {7} 7.output.js 21 {3} [rendered]
chunk {7} 7.output.js 21 bytes {3} [rendered]
> [0] ./example.js 10:1-12:3
[6] ./f.js 21 {7} [built]
[6] ./f.js 21 bytes {7} [built]
cjs require ./f [0] ./example.js 11:2-16
WARNING in output.js from UglifyJs
Dropping unused function argument c [./example.js:1,0]
Dropping unused function argument b [./example.js:1,0]
Dropping unused function argument a [./example.js:1,0]
Dropping unused function argument require [./example.js:3,0]
Dropping unused function argument require [./example.js:10,0]
Dropping unused function argument require [./example.js:13,0]
Dropping unused function argument require [./example.js:8,0]
```

View File

@ -86,50 +86,50 @@ module.exports = {
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ while(callbacks.length)
/******/ callbacks.shift().call(null, __webpack_require__);
/******/
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 1:0
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -141,20 +141,21 @@ module.exports = {
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -167,43 +168,35 @@ module.exports = {
/***/ function(module, exports, __webpack_require__) {
// a chunks with a, b, c
(function(/* require */) {var __WEBPACK_REMAINING_CHUNKS__ = 2;var __WEBPACK_CALLBACK__ = function() {if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}(__webpack_require__));};__webpack_require__.e(0, __WEBPACK_CALLBACK__);__webpack_require__.e(3, __WEBPACK_CALLBACK__);}());
(function(/* require */) {var __WEBPACK_REMAINING_CHUNKS__ = 2;var __WEBPACK_CALLBACK__ = function() {if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./a */ 1), __webpack_require__(/*! ./b */ 2), __webpack_require__(/*! ./c */ 3)]; (function(a, b, c) {}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}(__webpack_require__));};__webpack_require__.e(3, __WEBPACK_CALLBACK__);__webpack_require__.e(1, __WEBPACK_CALLBACK__);}());
// a chunk with a, b, d
(function(/* nsure */) {var __WEBPACK_REMAINING_CHUNKS__ = 2;var __WEBPACK_CALLBACK__ = function() {if(--__WEBPACK_REMAINING_CHUNKS__ < 1) (function(require) {
__webpack_require__(/*! ./b */ 2);
__webpack_require__(/*! ./d */ 4);
}(__webpack_require__));};__webpack_require__.e(0, __WEBPACK_CALLBACK__);__webpack_require__.e(2, __WEBPACK_CALLBACK__);}());
}(__webpack_require__));};__webpack_require__.e(3, __WEBPACK_CALLBACK__);__webpack_require__.e(2, __WEBPACK_CALLBACK__);}());
/***/ }
/******/ ])
/******/ ]);
```
# js/0.output.js
# js/1.output.js
``` javascript
webpackJsonp([0],[
/* 0 */,
/* 1 */
webpackJsonp([1],{
/***/ 3:
/*!**************!*\
!*** ./a.js ***!
!*** ./c.js ***!
\**************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "a";
/***/ },
/* 2 */
/*!**************!*\
!*** ./b.js ***!
\**************/
/***/ function(module, exports, __webpack_require__) {
module.exports = "b";
module.exports = "c";
/***/ }
]);
});
```
# js/2.output.js
@ -215,7 +208,7 @@ webpackJsonp([2],{
/*!**************!*\
!*** ./d.js ***!
\**************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "d";
@ -227,19 +220,27 @@ webpackJsonp([2],{
# js/3.output.js
``` javascript
webpackJsonp([3],{
/***/ 3:
webpackJsonp([3],[
/* 0 */,
/* 1 */
/*!**************!*\
!*** ./c.js ***!
!*** ./a.js ***!
\**************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "c";
module.exports = "a";
/***/ },
/* 2 */
/*!**************!*\
!*** ./b.js ***!
\**************/
/***/ function(module, exports) {
module.exports = "b";
/***/ }
});
]);
```
# Info
@ -247,71 +248,65 @@ webpackJsonp([3],{
## Uncompressed
```
Hash: 310f71157717394fc874
Version: webpack 1.5.0
Time: 51ms
Asset Size Chunks Chunk Names
0.output.js 342 0 [emitted]
output.js 4694 1 [emitted] main
2.output.js 180 2 [emitted]
3.output.js 180 3 [emitted]
chunk {0} 0.output.js 42 {1} [rendered]
Hash: db978d34dbff329a5081
Version: webpack 1.9.10
Time: 80ms
Asset Size Chunks Chunk Names
output.js 4.58 kB 0 [emitted] main
1.output.js 159 bytes 1 [emitted]
2.output.js 159 bytes 2 [emitted]
3.output.js 300 bytes 3 [emitted]
chunk {0} output.js (main) 194 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 194 bytes {0} [built]
chunk {1} 1.output.js 21 bytes {0} [rendered]
> [0] ./example.js 2:0-52
[3] ./c.js 21 bytes {1} [built]
amd require ./c [0] ./example.js 2:0-52
chunk {2} 2.output.js 21 bytes {0} [rendered]
> [0] ./example.js 5:0-8:2
[4] ./d.js 21 bytes {2} [built]
cjs require ./d [0] ./example.js 7:1-15
chunk {3} 3.output.js 42 bytes {0} [rendered]
> async commons [0] ./example.js 2:0-52
> async commons [0] ./example.js 5:0-8:2
[1] ./a.js 21 {0} [built]
[1] ./a.js 21 bytes {3} [built]
amd require ./a [0] ./example.js 2:0-52
require.ensure item ./a [0] ./example.js 5:0-8:2
[2] ./b.js 21 {0} [built]
[2] ./b.js 21 bytes {3} [built]
amd require ./b [0] ./example.js 2:0-52
cjs require ./b [0] ./example.js 6:1-15
chunk {1} output.js (main) 194 [rendered]
> main [0] ./example.js
[0] ./example.js 194 {1} [built]
chunk {2} 2.output.js 21 {1} [rendered]
> [0] ./example.js 5:0-8:2
[4] ./d.js 21 {2} [built]
cjs require ./d [0] ./example.js 7:1-15
chunk {3} 3.output.js 21 {1} [rendered]
> [0] ./example.js 2:0-52
[3] ./c.js 21 {3} [built]
amd require ./c [0] ./example.js 2:0-52
```
## Minimized (uglify-js, no zip)
```
Hash: 2bf4007377287b9601db
Version: webpack 1.5.0
Time: 136ms
Asset Size Chunks Chunk Names
0.output.js 75 0 [emitted]
output.js 931 1 [emitted] main
2.output.js 49 2 [emitted]
3.output.js 49 3 [emitted]
chunk {0} 0.output.js 42 {1} [rendered]
Hash: cbbd2be424e6b302103a
Version: webpack 1.9.10
Time: 257ms
Asset Size Chunks Chunk Names
0.output.js 79 bytes 0 [emitted]
output.js 937 bytes 1 [emitted] main
2.output.js 51 bytes 2 [emitted]
3.output.js 51 bytes 3 [emitted]
chunk {0} 0.output.js 42 bytes {1} [rendered]
> async commons [0] ./example.js 2:0-52
> async commons [0] ./example.js 5:0-8:2
[1] ./a.js 21 {0} [built]
[1] ./a.js 21 bytes {0} [built]
amd require ./a [0] ./example.js 2:0-52
require.ensure item ./a [0] ./example.js 5:0-8:2
[2] ./b.js 21 {0} [built]
[2] ./b.js 21 bytes {0} [built]
amd require ./b [0] ./example.js 2:0-52
cjs require ./b [0] ./example.js 6:1-15
chunk {1} output.js (main) 194 [rendered]
chunk {1} output.js (main) 194 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 194 {1} [built]
chunk {2} 2.output.js 21 {1} [rendered]
[0] ./example.js 194 bytes {1} [built]
chunk {2} 2.output.js 21 bytes {1} [rendered]
> [0] ./example.js 5:0-8:2
[4] ./d.js 21 {2} [built]
[4] ./d.js 21 bytes {2} [built]
cjs require ./d [0] ./example.js 7:1-15
chunk {3} 3.output.js 21 {1} [rendered]
chunk {3} 3.output.js 21 bytes {1} [rendered]
> [0] ./example.js 2:0-52
[3] ./c.js 21 {3} [built]
[3] ./c.js 21 bytes {3} [built]
amd require ./c [0] ./example.js 2:0-52
WARNING in output.js from UglifyJs
Dropping unused function argument c [./example.js:2,0]
Dropping unused function argument b [./example.js:2,0]
Dropping unused function argument a [./example.js:2,0]
Dropping unused function argument require [./example.js:5,0]
```

View File

@ -50,10 +50,10 @@ Pretty useful for a router in a SPA.
{{js/output.js}}
```
# js/0.output.js
# js/1.output.js
``` javascript
{{js/0.output.js}}
{{js/1.output.js}}
```
# js/2.output.js

View File

@ -115,48 +115,48 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/******/ return __webpack_require__(0);
/******/ }
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -168,20 +168,21 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".chunk.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -193,7 +194,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
\*******************/
/***/ function(module, exports, __webpack_require__) {
var render = __webpack_require__(/*! ./render */ 3);
var render = __webpack_require__(/*! ./render */ 1);
// Event when another page should be opened
// Maybe hook click on links, hashchange or popstate
@ -210,7 +211,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
// -> Pages are only loaded on demand
// This line may throw a exception on runtime if the page wasn't found.
var pageBundle = __webpack_require__(/*! bundle!. */ 4)("./" + name + "Page");
var pageBundle = __webpack_require__(/*! bundle!. */ 2)("./" + name + "Page");
// Wait until the chunk is loaded
pageBundle(function(page) {
@ -219,28 +220,26 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
}
/***/ },
/* 1 */,
/* 2 */,
/* 3 */
/* 1 */
/*!*******************!*\
!*** ./render.js ***!
\*******************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = function(page) {
console.log(page());
};
/***/ },
/* 4 */
/* 2 */
/*!************************************************!*\
!*** . (webpack)/~/bundle-loader!^\.\/.*Page$ ***!
\************************************************/
/***/ function(module, exports, __webpack_require__) {
var map = {
"./aPage": 5,
"./bPage": 6
"./aPage": 3,
"./bPage": 5
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
@ -253,11 +252,11 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 4;
webpackContext.id = 2;
/***/ },
/* 5 */
/* 3 */
/*!********************************************!*\
!*** (webpack)/~/bundle-loader!./aPage.js ***!
\********************************************/
@ -269,8 +268,8 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
if(cbs) cbs.push(cb);
else cb(data);
}
__webpack_require__.e/* nsure */(2, function(require) {
data = __webpack_require__(/*! !./aPage.js */ 1);
__webpack_require__.e/* nsure */(1, function(require) {
data = __webpack_require__(/*! !./aPage.js */ 4);
var callbacks = cbs;
cbs = null;
for(var i = 0, l = callbacks.length; i < l; i++) {
@ -279,7 +278,8 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
});
/***/ },
/* 6 */
/* 4 */,
/* 5 */
/*!********************************************!*\
!*** (webpack)/~/bundle-loader!./bPage.js ***!
\********************************************/
@ -291,8 +291,8 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
if(cbs) cbs.push(cb);
else cb(data);
}
__webpack_require__.e/* nsure */(1, function(require) {
data = __webpack_require__(/*! !./bPage.js */ 2);
__webpack_require__.e/* nsure */(2, function(require) {
data = __webpack_require__(/*! !./bPage.js */ 6);
var callbacks = cbs;
cbs = null;
for(var i = 0, l = callbacks.length; i < l; i++) {
@ -301,13 +301,13 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b"
});
/***/ }
/******/ ])
/******/ ]);
```
# js/pageA.bundle.js
``` javascript
webpackJsonp([4,2],[
webpackJsonp([3,1],[
/* 0 */
/*!*******************!*\
!*** ./aEntry.js ***!
@ -315,15 +315,18 @@ webpackJsonp([4,2],[
/***/ function(module, exports, __webpack_require__) {
// Just show the page "a"
var render = __webpack_require__(/*! ./render */ 3);
render(__webpack_require__(/*! ./aPage */ 1));
var render = __webpack_require__(/*! ./render */ 1);
render(__webpack_require__(/*! ./aPage */ 4));
/***/ },
/* 1 */
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */
/*!******************!*\
!*** ./aPage.js ***!
\******************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = function() {
return "This is page A.";
@ -338,14 +341,14 @@ webpackJsonp([4,2],[
``` javascript
webpackJsonp([1],{
/***/ 2:
/***/ 4:
/*!******************!*\
!*** ./bPage.js ***!
!*** ./aPage.js ***!
\******************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = function() {
return "This is page B.";
return "This is page A.";
};
/***/ }
@ -358,101 +361,97 @@ webpackJsonp([1],{
## Uncompressed
```
Hash: c54b8c9f3b91ef52a2eb
Version: webpack 1.5.0
Time: 65ms
Asset Size Chunks Chunk Names
commons.js 6878 0 [emitted] commons.js
1.chunk.js 234 1 [emitted]
2.chunk.js 240 2 [emitted]
pageB.bundle.js 521 3, 1 [emitted] pageB
pageA.bundle.js 512 4, 2 [emitted] pageA
chunk {0} commons.js (commons.js) 1842 [rendered]
Hash: aae2ba5b52da35745052
Version: webpack 1.9.10
Time: 127ms
Asset Size Chunks Chunk Names
commons.js 6.74 kB 0 [emitted] commons.js
1.chunk.js 213 bytes 1 [emitted]
2.chunk.js 213 bytes 2 [emitted]
pageA.bundle.js 518 bytes 3, 1 [emitted] pageA
pageB.bundle.js 496 bytes 4, 2 [emitted] pageB
chunk {0} commons.js (commons.js) 1.7 kB [rendered]
> commons.js [0] ./router.js
[0] ./router.js 894 {0} [built]
[3] ./render.js 60 {0} [built]
[0] ./router.js 894 bytes {0} [built]
[1] ./render.js 60 bytes {0} [built]
cjs require ./render [0] ./aEntry.js 2:13-32
cjs require ./render [0] ./bEntry.js 2:13-32
cjs require ./render [0] ./router.js 1:13-32
[4] . (webpack)/~/bundle-loader!^\.\/.*Page$ 184 {0} [built]
[2] . (webpack)/~/bundle-loader!^\.\/.*Page$ 184 bytes {0} [built]
cjs require context bundle!. [0] ./router.js 18:18-54
[5] (webpack)/~/bundle-loader!./aPage.js 352 {0} [optional] [built]
context element ./aPage [4] . (webpack)/~/bundle-loader!^\.\/.*Page$
[6] (webpack)/~/bundle-loader!./bPage.js 352 {0} [optional] [built]
context element ./bPage [4] . (webpack)/~/bundle-loader!^\.\/.*Page$
chunk {1} 1.chunk.js 61 {0} [rendered]
> [6] (webpack)/~/bundle-loader!./bPage.js 7:0-14:2
[2] ./bPage.js 61 {1} {3} [built]
cjs require ./bPage [0] ./bEntry.js 3:7-25
cjs require !!.\bPage.js [6] (webpack)/~/bundle-loader!./bPage.js 8:8-101
chunk {2} 2.chunk.js 61 {0} [rendered]
> [5] (webpack)/~/bundle-loader!./aPage.js 7:0-14:2
[1] ./aPage.js 61 {2} {4} [built]
[3] (webpack)/~/bundle-loader!./aPage.js 282 bytes {0} [optional] [built]
context element ./aPage [2] . (webpack)/~/bundle-loader!^\.\/.*Page$
[5] (webpack)/~/bundle-loader!./bPage.js 282 bytes {0} [optional] [built]
context element ./bPage [2] . (webpack)/~/bundle-loader!^\.\/.*Page$
chunk {1} 1.chunk.js 61 bytes {0} [rendered]
> [3] (webpack)/~/bundle-loader!./aPage.js 7:0-14:2
[4] ./aPage.js 61 bytes {1} {3} [built]
cjs require ./aPage [0] ./aEntry.js 3:7-25
cjs require !!.\aPage.js [5] (webpack)/~/bundle-loader!./aPage.js 8:8-101
chunk {3} pageB.bundle.js (pageB) 150 {0} [rendered]
> pageB [0] ./bEntry.js
[0] ./bEntry.js 89 {3} [built]
[2] ./bPage.js 61 {1} {3} [built]
cjs require !!./aPage.js [3] (webpack)/~/bundle-loader!./aPage.js 8:8-31
chunk {2} 2.chunk.js 61 bytes {0} [rendered]
> [5] (webpack)/~/bundle-loader!./bPage.js 7:0-14:2
[6] ./bPage.js 61 bytes {2} {4} [built]
cjs require ./bPage [0] ./bEntry.js 3:7-25
cjs require !!.\bPage.js [6] (webpack)/~/bundle-loader!./bPage.js 8:8-101
chunk {4} pageA.bundle.js (pageA) 150 {0} [rendered]
cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
chunk {3} pageA.bundle.js (pageA) 150 bytes {0} [rendered]
> pageA [0] ./aEntry.js
[0] ./aEntry.js 89 {4} [built]
[1] ./aPage.js 61 {2} {4} [built]
[0] ./aEntry.js 89 bytes {3} [built]
[4] ./aPage.js 61 bytes {1} {3} [built]
cjs require ./aPage [0] ./aEntry.js 3:7-25
cjs require !!.\aPage.js [5] (webpack)/~/bundle-loader!./aPage.js 8:8-101
cjs require !!./aPage.js [3] (webpack)/~/bundle-loader!./aPage.js 8:8-31
chunk {4} pageB.bundle.js (pageB) 150 bytes {0} [rendered]
> pageB [0] ./bEntry.js
[0] ./bEntry.js 89 bytes {4} [built]
[6] ./bPage.js 61 bytes {2} {4} [built]
cjs require ./bPage [0] ./bEntry.js 3:7-25
cjs require !!./bPage.js [5] (webpack)/~/bundle-loader!./bPage.js 8:8-31
```
## Minimized (uglify-js, no zip)
```
Hash: 77e2d963a63b9dfbc3ff
Version: webpack 1.5.0
Time: 202ms
Asset Size Chunks Chunk Names
commons.js 1427 0 [emitted] commons.js
1.chunk.js 81 1 [emitted]
2.chunk.js 80 2 [emitted]
pageB.bundle.js 118 3, 1 [emitted] pageB
pageA.bundle.js 117 4, 2 [emitted] pageA
chunk {0} commons.js (commons.js) 1842 [rendered]
Hash: c12fe65415c2d35b7d17
Version: webpack 1.9.10
Time: 428ms
Asset Size Chunks Chunk Names
commons.js 1.43 kB 0 [emitted] commons.js
1.chunk.js 83 bytes 1 [emitted]
2.chunk.js 82 bytes 2 [emitted]
pageB.bundle.js 120 bytes 3, 1 [emitted] pageB
pageA.bundle.js 119 bytes 4, 2 [emitted] pageA
chunk {0} commons.js (commons.js) 1.7 kB [rendered]
> commons.js [0] ./router.js
[0] ./router.js 894 {0} [built]
[3] ./render.js 60 {0} [built]
[0] ./router.js 894 bytes {0} [built]
[3] ./render.js 60 bytes {0} [built]
cjs require ./render [0] ./aEntry.js 2:13-32
cjs require ./render [0] ./bEntry.js 2:13-32
cjs require ./render [0] ./router.js 1:13-32
[4] . (webpack)/~/bundle-loader!^\.\/.*Page$ 184 {0} [built]
[4] . (webpack)/~/bundle-loader!^\.\/.*Page$ 184 bytes {0} [built]
cjs require context bundle!. [0] ./router.js 18:18-54
[5] (webpack)/~/bundle-loader!./aPage.js 352 {0} [optional] [built]
[5] (webpack)/~/bundle-loader!./aPage.js 282 bytes {0} [optional] [built]
context element ./aPage [4] . (webpack)/~/bundle-loader!^\.\/.*Page$
[6] (webpack)/~/bundle-loader!./bPage.js 352 {0} [optional] [built]
[6] (webpack)/~/bundle-loader!./bPage.js 282 bytes {0} [optional] [built]
context element ./bPage [4] . (webpack)/~/bundle-loader!^\.\/.*Page$
chunk {1} 1.chunk.js 61 {0} [rendered]
chunk {1} 1.chunk.js 61 bytes {0} [rendered]
> [6] (webpack)/~/bundle-loader!./bPage.js 7:0-14:2
[2] ./bPage.js 61 {1} {3} [built]
[2] ./bPage.js 61 bytes {1} {3} [built]
cjs require ./bPage [0] ./bEntry.js 3:7-25
cjs require !!.\bPage.js [6] (webpack)/~/bundle-loader!./bPage.js 8:8-101
chunk {2} 2.chunk.js 61 {0} [rendered]
cjs require !!./bPage.js [6] (webpack)/~/bundle-loader!./bPage.js 8:8-31
chunk {2} 2.chunk.js 61 bytes {0} [rendered]
> [5] (webpack)/~/bundle-loader!./aPage.js 7:0-14:2
[1] ./aPage.js 61 {2} {4} [built]
[1] ./aPage.js 61 bytes {2} {4} [built]
cjs require ./aPage [0] ./aEntry.js 3:7-25
cjs require !!.\aPage.js [5] (webpack)/~/bundle-loader!./aPage.js 8:8-101
chunk {3} pageB.bundle.js (pageB) 150 {0} [rendered]
cjs require !!./aPage.js [5] (webpack)/~/bundle-loader!./aPage.js 8:8-31
chunk {3} pageB.bundle.js (pageB) 150 bytes {0} [rendered]
> pageB [0] ./bEntry.js
[0] ./bEntry.js 89 {3} [built]
[2] ./bPage.js 61 {1} {3} [built]
[0] ./bEntry.js 89 bytes {3} [built]
[2] ./bPage.js 61 bytes {1} {3} [built]
cjs require ./bPage [0] ./bEntry.js 3:7-25
cjs require !!.\bPage.js [6] (webpack)/~/bundle-loader!./bPage.js 8:8-101
chunk {4} pageA.bundle.js (pageA) 150 {0} [rendered]
cjs require !!./bPage.js [6] (webpack)/~/bundle-loader!./bPage.js 8:8-31
chunk {4} pageA.bundle.js (pageA) 150 bytes {0} [rendered]
> pageA [0] ./aEntry.js
[0] ./aEntry.js 89 {4} [built]
[1] ./aPage.js 61 {2} {4} [built]
[0] ./aEntry.js 89 bytes {4} [built]
[1] ./aPage.js 61 bytes {2} {4} [built]
cjs require ./aPage [0] ./aEntry.js 3:7-25
cjs require !!.\aPage.js [5] (webpack)/~/bundle-loader!./aPage.js 8:8-101
WARNING in commons.js from UglifyJs
Dropping unused function argument require [(webpack)/~/bundle-loader!./aPage.js:7,0]
Dropping unused function argument require [(webpack)/~/bundle-loader!./bPage.js:7,0]
cjs require !!./aPage.js [5] (webpack)/~/bundle-loader!./aPage.js 8:8-31
```

View File

@ -52,41 +52,41 @@ module.exports = Object.keys(languages).map(function(language) {
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -102,7 +102,7 @@ module.exports = Object.keys(languages).map(function(language) {
console.log("Missing Text");
/***/ }
/******/ ])
/******/ ]);
```
# js/en.output.js
@ -111,41 +111,41 @@ module.exports = Object.keys(languages).map(function(language) {
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -161,7 +161,7 @@ module.exports = Object.keys(languages).map(function(language) {
console.log("Missing Text");
/***/ }
/******/ ])
/******/ ]);
```
# Info
@ -170,28 +170,28 @@ module.exports = Object.keys(languages).map(function(language) {
```
Hash: 10b995417061f97b4ba67e868bed7a01e88b0dbe
Version: webpack 1.5.0
Version: webpack 1.9.10
WARNING in (de) ./example.js
Missing localization: Missing Text
Child en:
Hash: 10b995417061f97b4ba6
Version: webpack 1.5.0
Time: 40ms
Asset Size Chunks Chunk Names
en.output.js 1634 0 [emitted] main
chunk {0} en.output.js (main) 65 [rendered]
Version: webpack 1.9.10
Time: 62ms
Asset Size Chunks Chunk Names
en.output.js 1.55 kB 0 [emitted] main
chunk {0} en.output.js (main) 65 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 65 {0} [built]
[0] ./example.js 65 bytes {0} [built]
Child de:
Hash: 7e868bed7a01e88b0dbe
Version: webpack 1.5.0
Time: 32ms
Asset Size Chunks Chunk Names
de.output.js 1633 0 [emitted] main
chunk {0} de.output.js (main) 65 [rendered]
Version: webpack 1.9.10
Time: 51ms
Asset Size Chunks Chunk Names
de.output.js 1.55 kB 0 [emitted] main
chunk {0} de.output.js (main) 65 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 65 {0} [built] [1 warning]
[0] ./example.js 65 bytes {0} [built] [1 warning]
WARNING in ./example.js
Missing localization: Missing Text
@ -200,29 +200,29 @@ Child de:
## Minimized (uglify-js, no zip)
```
Hash: 9bb31b2ddd4c97648d685db1949f4b7d2da99d20
Version: webpack 1.5.0
Hash: 10b995417061f97b4ba67e868bed7a01e88b0dbe
Version: webpack 1.9.10
WARNING in (de) ./example.js
Missing localization: Missing Text
Child en:
Hash: 9bb31b2ddd4c97648d68
Version: webpack 1.5.0
Time: 78ms
Asset Size Chunks Chunk Names
en.output.js 272 0 [emitted] main
chunk {0} en.output.js (main) 65 [rendered]
Hash: 10b995417061f97b4ba6
Version: webpack 1.9.10
Time: 179ms
Asset Size Chunks Chunk Names
en.output.js 277 bytes 0 [emitted] main
chunk {0} en.output.js (main) 65 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 65 {0} [built]
[0] ./example.js 65 bytes {0} [built]
Child de:
Hash: 5db1949f4b7d2da99d20
Version: webpack 1.5.0
Time: 73ms
Asset Size Chunks Chunk Names
de.output.js 271 0 [emitted] main
chunk {0} de.output.js (main) 65 [rendered]
Hash: 7e868bed7a01e88b0dbe
Version: webpack 1.9.10
Time: 168ms
Asset Size Chunks Chunk Names
de.output.js 276 bytes 0 [emitted] main
chunk {0} de.output.js (main) 65 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 65 {0} [built] [1 warning]
[0] ./example.js 65 bytes {0} [built] [1 warning]
WARNING in ./example.js
Missing localization: Missing Text

View File

@ -46,41 +46,41 @@ exports: function add() {
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -124,7 +124,7 @@ exports: function add() {
};
/***/ }
/******/ ])
/******/ ]);
```
The remaining labels are removed while minimizing.
@ -135,32 +135,32 @@ The remaining labels are removed while minimizing.
```
Hash: 76177991efc90e16a609
Version: webpack 1.5.0
Time: 52ms
Asset Size Chunks Chunk Names
output.js 2425 0 [emitted] main
chunk {0} output.js (main) 299 [rendered]
Version: webpack 1.9.10
Time: 67ms
Asset Size Chunks Chunk Names
output.js 2.34 kB 0 [emitted] main
chunk {0} output.js (main) 299 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 55 {0} [built]
[1] ./increment.js 83 {0} [built]
[0] ./example.js 55 bytes {0} [built]
[1] ./increment.js 83 bytes {0} [built]
labeled require ./increment [0] ./example.js 1:0-23
[2] ./math.js 161 {0} [built]
[2] ./math.js 161 bytes {0} [built]
labeled require ./math [1] ./increment.js 1:0-18
```
## Minimized (uglify-js, no zip)
```
Hash: 3f31496b8f372dabffef
Version: webpack 1.5.0
Time: 158ms
Asset Size Chunks Chunk Names
output.js 427 0 [emitted] main
chunk {0} output.js (main) 299 [rendered]
Hash: 76177991efc90e16a609
Version: webpack 1.9.10
Time: 179ms
Asset Size Chunks Chunk Names
output.js 429 bytes 0 [emitted] main
chunk {0} output.js (main) 299 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 55 {0} [built]
[1] ./increment.js 83 {0} [built]
[0] ./example.js 55 bytes {0} [built]
[1] ./increment.js 83 bytes {0} [built]
labeled require ./increment [0] ./example.js 1:0-23
[2] ./math.js 161 {0} [built]
[2] ./math.js 161 bytes {0} [built]
labeled require ./math [1] ./increment.js 1:0-18
```

View File

@ -37,41 +37,41 @@ module.exports = function(content) {
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -84,35 +84,35 @@ module.exports = function(content) {
/***/ function(module, exports, __webpack_require__) {
// use our loader
console.dir(__webpack_require__(/*! ./loader!./file */ 2));
console.dir(__webpack_require__(/*! ./loader!./file */ 1));
// use buildin json loader
console.dir(__webpack_require__(/*! ./test.json */ 1)); // default by extension
console.dir(__webpack_require__(/*! json!./test.json */ 1)); // manual
console.dir(__webpack_require__(/*! ./test.json */ 2)); // default by extension
console.dir(__webpack_require__(/*! json!./test.json */ 2)); // manual
/***/ },
/* 1 */
/*!*****************************!*\
!*** ./loader.js!./file.js ***!
\*****************************/
/***/ function(module, exports) {
exports.answer = 42;
exports.foo = "bar";
/***/ },
/* 2 */
/*!*******************************************!*\
!*** (webpack)/~/json-loader!./test.json ***!
\*******************************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = {
"foobar": 1234
}
/***/ },
/* 2 */
/*!*****************************!*\
!*** ./loader.js!./file.js ***!
\*****************************/
/***/ function(module, exports, __webpack_require__) {
exports.answer = 42;
exports.foo = "bar";
/***/ }
/******/ ])
/******/ ]);
```
# Console output
@ -130,35 +130,35 @@ Prints in node.js (`enhanced-require example.js`) and in browser:
## Uncompressed
```
Hash: 8ae83d82089bb36260e9
Version: webpack 1.5.0
Time: 58ms
Asset Size Chunks Chunk Names
output.js 2323 0 [emitted] main
chunk {0} output.js (main) 282 [rendered]
Hash: b7795109258519c88313
Version: webpack 1.9.10
Time: 106ms
Asset Size Chunks Chunk Names
output.js 2.19 kB 0 [emitted] main
chunk {0} output.js (main) 282 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 205 {0} [built]
[1] (webpack)/~/json-loader!./test.json 36 {0} [built]
[0] ./example.js 205 bytes {0} [built]
[1] ./loader.js!./file.js 41 bytes {0} [not cacheable] [built]
cjs require ./loader!./file [0] ./example.js 2:12-38
[2] (webpack)/~/json-loader!./test.json 36 bytes {0} [built]
cjs require !json!./test.json [0] ./example.js 6:12-40
cjs require ./test.json [0] ./example.js 5:12-34
[2] ./loader.js!./file.js 41 {0} [not cacheable] [built]
cjs require ./loader!./file [0] ./example.js 2:12-38
```
## Minimized (uglify-js, no zip)
```
Hash: 17799e695fe3c2a8b932
Version: webpack 1.5.0
Time: 102ms
Asset Size Chunks Chunk Names
output.js 352 0 [emitted] main
chunk {0} output.js (main) 282 [rendered]
Hash: 8ae83d82089bb36260e9
Version: webpack 1.9.10
Time: 252ms
Asset Size Chunks Chunk Names
output.js 354 bytes 0 [emitted] main
chunk {0} output.js (main) 282 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 205 {0} [built]
[1] (webpack)/~/json-loader!./test.json 36 {0} [built]
[0] ./example.js 205 bytes {0} [built]
[1] (webpack)/~/json-loader!./test.json 36 bytes {0} [built]
cjs require !json!./test.json [0] ./example.js 6:12-40
cjs require ./test.json [0] ./example.js 5:12-34
[2] ./loader.js!./file.js 41 {0} [not cacheable] [built]
[2] ./loader.js!./file.js 41 bytes {0} [not cacheable] [built]
cjs require ./loader!./file [0] ./example.js 2:12-38
```

View File

@ -98,50 +98,50 @@ require(
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ while(callbacks.length)
/******/ callbacks.shift().call(null, __webpack_require__);
/******/
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 1:0
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -153,20 +153,21 @@ require(
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -179,15 +180,15 @@ require(
/***/ function(module, exports, __webpack_require__) {
// CommonJs-style requires
var commonjs1 = __webpack_require__(/*! ./commonjs */ 2);
var amd1 = __webpack_require__(/*! ./amd */ 1);
var commonjs1 = __webpack_require__(/*! ./commonjs */ 1);
var amd1 = __webpack_require__(/*! ./amd */ 2);
var labeled1 = __webpack_require__(/*! ./labeled */ 3);
// AMD-style requires (with all webpack features)
__webpack_require__.e/* require */(0, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [
__webpack_require__(/*! ./commonjs */ 2), __webpack_require__(/*! ./amd */ 1), __webpack_require__(/*! ./labeled */ 3),
__webpack_require__.e/* require */(1, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [
__webpack_require__(/*! ./commonjs */ 1), __webpack_require__(/*! ./amd */ 2), __webpack_require__(/*! ./labeled */ 3),
__webpack_require__(/*! ../require.context/templates */ 4)("./"+amd1+".js"),
Math.random() < 0.5 ? __webpack_require__(/*! ./commonjs */ 2) : __webpack_require__(/*! ./amd */ 1)]; (function(commonjs2, amd2, labeled2, template, randModule) {
Math.random() < 0.5 ? __webpack_require__(/*! ./commonjs */ 1) : __webpack_require__(/*! ./amd */ 2)]; (function(commonjs2, amd2, labeled2, template, randModule) {
// Do something with it...
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
@ -198,22 +199,6 @@ require(
/***/ },
/* 1 */
/*!****************!*\
!*** ./amd.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// AMD Module Format
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./commonjs */ 2), __webpack_require__(/*! ./labeled */ 3)], __WEBPACK_AMD_DEFINE_RESULT__ = function(commonjs1, labeled1) {
// but you can use CommonJs-style requires:
var commonjs2 = __webpack_require__(/*! ./commonjs */ 2);
var labeled2 = __webpack_require__(/*! ./labeled */ 3);
// Do something...
return 456;
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
/***/ },
/* 2 */
/*!*********************!*\
!*** ./commonjs.js ***!
\*********************/
@ -223,11 +208,27 @@ require(
module.exports = 123;
// but you can use amd style requires
!/* require */(/* empty */function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./amd */ 1), __webpack_require__(/*! ./labeled */ 3)]; (function(amd1, labeled1) {
var amd2 = __webpack_require__(/*! ./amd */ 1);
!/* require */(/* empty */function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./amd */ 2), __webpack_require__(/*! ./labeled */ 3)]; (function(amd1, labeled1) {
var amd2 = __webpack_require__(/*! ./amd */ 2);
var labeled2 = __webpack_require__(/*! ./labeled */ 3);
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}());
/***/ },
/* 2 */
/*!****************!*\
!*** ./amd.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// AMD Module Format
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./commonjs */ 1), __webpack_require__(/*! ./labeled */ 3)], __WEBPACK_AMD_DEFINE_RESULT__ = function(commonjs1, labeled1) {
// but you can use CommonJs-style requires:
var commonjs2 = __webpack_require__(/*! ./commonjs */ 1);
var labeled2 = __webpack_require__(/*! ./labeled */ 3);
// Do something...
return 456;
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
/***/ },
/* 3 */
/*!********************!*\
@ -239,19 +240,19 @@ require(
exports: var a = exports["a"] = 123;
// but you can use amd and commonjs style requires
!/* require */(/* empty */function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./commonjs */ 2), __webpack_require__(/*! ./amd */ 1)]; (function(amd1) {
var commonjs2 = __webpack_require__(/*! ./commonjs */ 2);
var amd2 = __webpack_require__(/*! ./amd */ 1);
!/* require */(/* empty */function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./commonjs */ 1), __webpack_require__(/*! ./amd */ 2)]; (function(amd1) {
var commonjs2 = __webpack_require__(/*! ./commonjs */ 1);
var amd2 = __webpack_require__(/*! ./amd */ 2);
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));}());
/***/ }
/******/ ])
/******/ ]);
```
# js/0.output.js
# js/1.output.js
``` javascript
webpackJsonp([0],[
webpackJsonp([1],[
/* 0 */,
/* 1 */,
/* 2 */,
@ -286,7 +287,7 @@ webpackJsonp([0],[
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template A";
@ -297,7 +298,7 @@ webpackJsonp([0],[
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template B";
@ -308,7 +309,7 @@ webpackJsonp([0],[
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template C";
@ -323,74 +324,74 @@ webpackJsonp([0],[
## Uncompressed
```
Hash: eaf23592eedc3f55fb55
Version: webpack 1.5.0
Time: 55ms
Asset Size Chunks Chunk Names
0.output.js 1681 0 [emitted]
output.js 6831 1 [emitted] main
chunk {0} 0.output.js 439 {1} [rendered]
> [0] ./example.js 7:0-14:1
[4] ../require.context/templates ^\.\/.*\.js$ 193 {0} [built]
amd require context ../require.context/templates [0] ./example.js 7:0-14:1
[5] ../require.context/templates/a.js 82 {0} [optional] [built]
context element ./a.js [4] ../require.context/templates ^\.\/.*\.js$
[6] ../require.context/templates/b.js 82 {0} [optional] [built]
context element ./b.js [4] ../require.context/templates ^\.\/.*\.js$
[7] ../require.context/templates/c.js 82 {0} [optional] [built]
context element ./c.js [4] ../require.context/templates ^\.\/.*\.js$
chunk {1} output.js (main) 1395 [rendered]
Hash: 8bbf1570bf7bc4f20d74
Version: webpack 1.9.10
Time: 97ms
Asset Size Chunks Chunk Names
output.js 6.71 kB 0 [emitted] main
1.output.js 1.62 kB 1 [emitted]
chunk {0} output.js (main) 1.4 kB [rendered]
> main [0] ./example.js
[0] ./example.js 613 {1} [built]
[1] ./amd.js 309 {1} [built]
cjs require ./amd [0] ./example.js 3:11-27
amd require ./amd [0] ./example.js 7:0-14:1
amd require ./amd [0] ./example.js 7:0-14:1
amd require ./amd [2] ./commonjs.js 5:0-11:1
cjs require ./amd [2] ./commonjs.js 8:13-29
amd require ./amd [3] ./labeled.js 5:0-11:1
cjs require ./amd [3] ./labeled.js 9:13-29
[2] ./commonjs.js 234 {1} [built]
[0] ./example.js 613 bytes {0} [built]
[1] ./commonjs.js 234 bytes {0} [built]
cjs require ./commonjs [0] ./example.js 2:16-37
amd require ./commonjs [0] ./example.js 7:0-14:1
amd require ./commonjs [0] ./example.js 7:0-14:1
amd require ./commonjs [1] ./amd.js 2:0-12:1
cjs require ./commonjs [1] ./amd.js 7:18-39
amd require ./commonjs [2] ./amd.js 2:0-12:1
cjs require ./commonjs [2] ./amd.js 7:18-39
amd require ./commonjs [3] ./labeled.js 5:0-11:1
cjs require ./commonjs [3] ./labeled.js 8:18-39
[3] ./labeled.js 239 {1} [built]
[2] ./amd.js 309 bytes {0} [built]
cjs require ./amd [0] ./example.js 3:11-27
amd require ./amd [0] ./example.js 7:0-14:1
amd require ./amd [0] ./example.js 7:0-14:1
amd require ./amd [1] ./commonjs.js 5:0-11:1
cjs require ./amd [1] ./commonjs.js 8:13-29
amd require ./amd [3] ./labeled.js 5:0-11:1
cjs require ./amd [3] ./labeled.js 9:13-29
[3] ./labeled.js 239 bytes {0} [built]
cjs require ./labeled [0] ./example.js 4:15-35
labeled require ./labeled [0] ./example.js 17:0-21
amd require ./labeled [0] ./example.js 7:0-14:1
amd require ./labeled [1] ./amd.js 2:0-12:1
cjs require ./labeled [1] ./amd.js 8:17-37
amd require ./labeled [2] ./commonjs.js 5:0-11:1
cjs require ./labeled [2] ./commonjs.js 9:17-37
amd require ./labeled [1] ./commonjs.js 5:0-11:1
cjs require ./labeled [1] ./commonjs.js 9:17-37
amd require ./labeled [2] ./amd.js 2:0-12:1
cjs require ./labeled [2] ./amd.js 8:17-37
chunk {1} 1.output.js 439 bytes {0} [rendered]
> [0] ./example.js 7:0-14:1
[4] ../require.context/templates ^\.\/.*\.js$ 193 bytes {1} [built]
amd require context ../require.context/templates [0] ./example.js 7:0-14:1
[5] ../require.context/templates/a.js 82 bytes {1} [optional] [built]
context element ./a.js [4] ../require.context/templates ^\.\/.*\.js$
[6] ../require.context/templates/b.js 82 bytes {1} [optional] [built]
context element ./b.js [4] ../require.context/templates ^\.\/.*\.js$
[7] ../require.context/templates/c.js 82 bytes {1} [optional] [built]
context element ./c.js [4] ../require.context/templates ^\.\/.*\.js$
```
## Minimized (uglify-js, no zip)
```
Hash: 6dd277afcc9156b2aa18
Version: webpack 1.5.0
Time: 199ms
Asset Size Chunks Chunk Names
0.output.js 514 0 [emitted]
output.js 1183 1 [emitted] main
chunk {0} 0.output.js 439 {1} [rendered]
Hash: 277caf8a06566f9f4448
Version: webpack 1.9.10
Time: 309ms
Asset Size Chunks Chunk Names
0.output.js 520 bytes 0 [emitted]
output.js 1.2 kB 1 [emitted] main
chunk {0} 0.output.js 439 bytes {1} [rendered]
> [0] ./example.js 7:0-14:1
[4] ../require.context/templates ^\.\/.*\.js$ 193 {0} [built]
[4] ../require.context/templates ^\.\/.*\.js$ 193 bytes {0} [built]
amd require context ../require.context/templates [0] ./example.js 7:0-14:1
[5] ../require.context/templates/a.js 82 {0} [optional] [built]
[5] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a.js [4] ../require.context/templates ^\.\/.*\.js$
[6] ../require.context/templates/b.js 82 {0} [optional] [built]
[6] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b.js [4] ../require.context/templates ^\.\/.*\.js$
[7] ../require.context/templates/c.js 82 {0} [optional] [built]
[7] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c.js [4] ../require.context/templates ^\.\/.*\.js$
chunk {1} output.js (main) 1395 [rendered]
chunk {1} output.js (main) 1.4 kB [rendered]
> main [0] ./example.js
[0] ./example.js 613 {1} [built]
[1] ./amd.js 309 {1} [built]
[0] ./example.js 613 bytes {1} [built]
[1] ./amd.js 309 bytes {1} [built]
cjs require ./amd [0] ./example.js 3:11-27
amd require ./amd [0] ./example.js 7:0-14:1
amd require ./amd [0] ./example.js 7:0-14:1
@ -398,7 +399,7 @@ chunk {1} output.js (main) 1395 [rendered]
cjs require ./amd [2] ./commonjs.js 8:13-29
amd require ./amd [3] ./labeled.js 5:0-11:1
cjs require ./amd [3] ./labeled.js 9:13-29
[2] ./commonjs.js 234 {1} [built]
[2] ./commonjs.js 234 bytes {1} [built]
cjs require ./commonjs [0] ./example.js 2:16-37
amd require ./commonjs [0] ./example.js 7:0-14:1
amd require ./commonjs [0] ./example.js 7:0-14:1
@ -406,7 +407,7 @@ chunk {1} output.js (main) 1395 [rendered]
cjs require ./commonjs [1] ./amd.js 7:18-39
amd require ./commonjs [3] ./labeled.js 5:0-11:1
cjs require ./commonjs [3] ./labeled.js 8:18-39
[3] ./labeled.js 239 {1} [built]
[3] ./labeled.js 239 bytes {1} [built]
cjs require ./labeled [0] ./example.js 4:15-35
labeled require ./labeled [0] ./example.js 17:0-21
amd require ./labeled [0] ./example.js 7:0-14:1
@ -416,23 +417,13 @@ chunk {1} output.js (main) 1395 [rendered]
cjs require ./labeled [2] ./commonjs.js 9:17-37
WARNING in output.js from UglifyJs
Dropping unused function argument randModule [./example.js:11,0]
Dropping unused function argument template [./example.js:11,0]
Dropping unused function argument labeled2 [./example.js:11,0]
Dropping unused function argument amd2 [./example.js:11,0]
Dropping unused function argument commonjs2 [./example.js:11,0]
Side effects in initialization of unused variable commonjs1 [./example.js:2,0]
Side effects in initialization of unused variable labeled1 [./example.js:4,0]
Side effects in initialization of unused variable a [./example.js:17,0]
Dropping unused function argument labeled1 [./amd.js:5,0]
Dropping unused function argument commonjs1 [./amd.js:5,0]
Side effects in initialization of unused variable commonjs2 [./amd.js:7,0]
Side effects in initialization of unused variable labeled2 [./amd.js:8,0]
Dropping unused function argument labeled1 [./commonjs.js:7,0]
Dropping unused function argument amd1 [./commonjs.js:7,0]
Side effects in initialization of unused variable amd2 [./commonjs.js:8,0]
Side effects in initialization of unused variable labeled2 [./commonjs.js:9,0]
Dropping unused function argument amd1 [./labeled.js:7,0]
Side effects in initialization of unused variable commonjs2 [./labeled.js:8,0]
Side effects in initialization of unused variable amd2 [./labeled.js:9,0]
Side effects in initialization of unused variable a [./labeled.js:2,0]

View File

@ -33,10 +33,10 @@ You see that everything is working nicely together.
{{js/output.js}}
```
# js/0.output.js
# js/1.output.js
``` javascript
{{js/0.output.js}}
{{js/1.output.js}}
```
# Info

View File

@ -72,154 +72,147 @@ module.exports = {
## Uncompressed
```
Hash: ff24adedc278bb766334
Version: webpack 1.5.0
Time: 63ms
Asset Size Chunks Chunk Names
pageD.bundle.js 4578 6, 11 [emitted] pageD
0.chunk.js 186 0 [emitted]
2.chunk.js 356 2, 0, 10 [emitted]
3.chunk.js 517 3, 5, 8, 10, 11 [emitted]
pageB.bundle.js 4630 4, 0, 11 [emitted] pageB
5.chunk.js 363 5, 10 [emitted]
1.chunk.js 516 1, 0, 2, 5, 10 [emitted]
pageC.bundle.js 4533 7, 11 [emitted] pageC
8.chunk.js 357 8, 10, 11 [emitted]
pageA.bundle.js 4483 9, 0 [emitted] pageA
10.chunk.js 181 10 [emitted]
11.chunk.js 181 11 [emitted]
chunk {0} 0.chunk.js 21 {7} {6} [rendered]
Hash: ec1febbb5042422aab83
Version: webpack 1.9.10
Time: 99ms
Asset Size Chunks Chunk Names
6.chunk.js 320 bytes 6, 5 [emitted]
pageA.bundle.js 4.34 kB 0, 8 [emitted] pageA
2.chunk.js 313 bytes 2, 1, 5 [emitted]
3.chunk.js 452 bytes 3, 1, 2, 5, 6 [emitted]
pageB.bundle.js 4.47 kB 4, 1, 8 [emitted] pageB
5.chunk.js 159 bytes 5 [emitted]
1.chunk.js 159 bytes 1 [emitted]
pageC.bundle.js 4.39 kB 7, 1 [emitted] pageC
8.chunk.js 165 bytes 8 [emitted]
9.chunk.js 313 bytes 9, 5, 8 [emitted]
10.chunk.js 453 bytes 10, 5, 6, 8, 9 [emitted]
pageD.bundle.js 4.44 kB 11, 1 [emitted] pageD
chunk {0} pageA.bundle.js (pageA) 139 bytes [rendered]
> pageA [0] ./page.js?A
[0] ./page.js?A 118 bytes {0} [built]
[1] ./a.js 21 bytes {0} {4} {8} {9} {10} [built]
chunk {1} 1.chunk.js 21 bytes {0} [rendered]
> [0] ./page.js?A 2:0-23
[2] ./b.js 21 bytes {1} {2} {3} {4} {7} {11} [built]
chunk {2} 2.chunk.js 42 bytes {0} [rendered]
> [0] ./page.js?A 3:0-30
[2] ./b.js 21 bytes {1} {2} {3} {4} {7} {11} [built]
[3] ./c.js 21 bytes {2} {3} {5} {6} {9} {10} [built]
chunk {3} 3.chunk.js 63 bytes {0} [rendered]
> [0] ./page.js?A 4:0-37
[2] ./b.js 21 bytes {1} {2} {3} {4} {7} {11} [built]
[3] ./c.js 21 bytes {2} {3} {5} {6} {9} {10} [built]
[4] ./d.js 21 bytes {3} {6} {10} [built]
chunk {4} pageB.bundle.js (pageB) 160 bytes [rendered]
> pageB [0] ./page.js?B
[0] ./page.js?B 118 bytes {4} [built]
[1] ./a.js 21 bytes {0} {4} {8} {9} {10} [built]
[2] ./b.js 21 bytes {1} {2} {3} {4} {7} {11} [built]
chunk {5} 5.chunk.js 21 bytes {4} [rendered]
> [0] ./page.js?B 3:0-30
[3] ./c.js 21 bytes {2} {3} {5} {6} {9} {10} [built]
chunk {6} 6.chunk.js 42 bytes {4} [rendered]
> [0] ./page.js?B 4:0-37
[3] ./c.js 21 bytes {2} {3} {5} {6} {9} {10} [built]
[4] ./d.js 21 bytes {3} {6} {10} [built]
chunk {7} pageC.bundle.js (pageC) 139 bytes [rendered]
> pageC [0] ./page.js?C
[0] ./page.js?C 118 bytes {7} [built]
[2] ./b.js 21 bytes {1} {2} {3} {4} {7} {11} [built]
chunk {8} 8.chunk.js 21 bytes {7} {11} [rendered]
> [0] ./page.js?C 1:0-16
> duplicate [0] ./page.js?C 2:0-23
> duplicate [0] ./page.js?D 1:0-16
> duplicate [0] ./page.js?D 2:0-23
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
chunk {1} 1.chunk.js 63 {7} {6} [rendered]
> [0] ./page.js?C 4:0-37
> duplicate [0] ./page.js?D 4:0-37
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
[4] ./d.js 21 {1} {3} {5} [built]
chunk {2} 2.chunk.js 42 {7} {6} [rendered]
[1] ./a.js 21 bytes {0} {4} {8} {9} {10} [built]
chunk {9} 9.chunk.js 42 bytes {7} {11} [rendered]
> [0] ./page.js?C 3:0-30
> duplicate [0] ./page.js?D 3:0-30
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
chunk {3} 3.chunk.js 63 {9} [rendered]
> [0] ./page.js?A 4:0-37
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
[4] ./d.js 21 {1} {3} {5} [built]
chunk {4} pageB.bundle.js (pageB) 160 [rendered]
> pageB [0] ./page.js?B
[0] ./page.js?B 118 {4} [built]
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
chunk {5} 5.chunk.js 42 {4} [rendered]
> [0] ./page.js?B 4:0-37
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
[4] ./d.js 21 {1} {3} {5} [built]
chunk {6} pageD.bundle.js (pageD) 139 [rendered]
[1] ./a.js 21 bytes {0} {4} {8} {9} {10} [built]
[3] ./c.js 21 bytes {2} {3} {5} {6} {9} {10} [built]
chunk {10} 10.chunk.js 63 bytes {7} {11} [rendered]
> [0] ./page.js?C 4:0-37
> duplicate [0] ./page.js?D 4:0-37
[1] ./a.js 21 bytes {0} {4} {8} {9} {10} [built]
[3] ./c.js 21 bytes {2} {3} {5} {6} {9} {10} [built]
[4] ./d.js 21 bytes {3} {6} {10} [built]
chunk {11} pageD.bundle.js (pageD) 139 bytes [rendered]
> pageD [0] ./page.js?D
[0] ./page.js?D 118 {6} [built]
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
chunk {7} pageC.bundle.js (pageC) 139 [rendered]
> pageC [0] ./page.js?C
[0] ./page.js?C 118 {7} [built]
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
chunk {8} 8.chunk.js 42 {9} [rendered]
> [0] ./page.js?A 3:0-30
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
chunk {9} pageA.bundle.js (pageA) 139 [rendered]
> pageA [0] ./page.js?A
[0] ./page.js?A 118 {9} [built]
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
chunk {10} 10.chunk.js 21 {4} [rendered]
> [0] ./page.js?B 3:0-30
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
chunk {11} 11.chunk.js 21 {9} [rendered]
> [0] ./page.js?A 2:0-23
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
[0] ./page.js?D 118 bytes {11} [built]
[2] ./b.js 21 bytes {1} {2} {3} {4} {7} {11} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 8e6c34485b020b23e506
Version: webpack 1.5.0
Time: 287ms
Asset Size Chunks Chunk Names
pageD.bundle.js 881 6, 11 [emitted] pageD
0.chunk.js 48 0 [emitted]
2.chunk.js 81 2, 0, 10 [emitted]
3.chunk.js 113 3, 5, 8, 10, 11 [emitted]
pageB.bundle.js 855 4, 0, 11 [emitted] pageB
5.chunk.js 80 5, 10 [emitted]
1.chunk.js 112 1, 0, 2, 5, 10 [emitted]
pageC.bundle.js 881 7, 11 [emitted] pageC
8.chunk.js 82 8, 10, 11 [emitted]
pageA.bundle.js 854 9, 0 [emitted] pageA
10.chunk.js 50 10 [emitted]
11.chunk.js 50 11 [emitted]
chunk {0} 0.chunk.js 21 {7} {6} [rendered]
Hash: c5f3f207764121c16c7e
Version: webpack 1.9.10
Time: 444ms
Asset Size Chunks Chunk Names
pageD.bundle.js 883 bytes 6, 11 [emitted] pageD
0.chunk.js 50 bytes 0 [emitted]
2.chunk.js 85 bytes 2, 0, 10 [emitted]
3.chunk.js 119 bytes 3, 5, 8, 10, 11 [emitted]
pageB.bundle.js 880 bytes 4, 0, 11 [emitted] pageB
5.chunk.js 84 bytes 5, 10 [emitted]
1.chunk.js 118 bytes 1, 0, 2, 5, 10 [emitted]
pageC.bundle.js 883 bytes 7, 11 [emitted] pageC
8.chunk.js 86 bytes 8, 10, 11 [emitted]
pageA.bundle.js 864 bytes 9, 0 [emitted] pageA
10.chunk.js 52 bytes 10 [emitted]
11.chunk.js 52 bytes 11 [emitted]
chunk {0} 0.chunk.js 21 bytes {7} {6} [rendered]
> [0] ./page.js?C 1:0-16
> duplicate [0] ./page.js?C 2:0-23
> duplicate [0] ./page.js?D 1:0-16
> duplicate [0] ./page.js?D 2:0-23
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
chunk {1} 1.chunk.js 63 {7} {6} [rendered]
[1] ./a.js 21 bytes {0} {1} {2} {4} {9} [built]
chunk {1} 1.chunk.js 63 bytes {7} {6} [rendered]
> [0] ./page.js?C 4:0-37
> duplicate [0] ./page.js?D 4:0-37
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
[4] ./d.js 21 {1} {3} {5} [built]
chunk {2} 2.chunk.js 42 {7} {6} [rendered]
[1] ./a.js 21 bytes {0} {1} {2} {4} {9} [built]
[3] ./c.js 21 bytes {1} {2} {3} {5} {8} {10} [built]
[4] ./d.js 21 bytes {1} {3} {5} [built]
chunk {2} 2.chunk.js 42 bytes {7} {6} [rendered]
> [0] ./page.js?C 3:0-30
> duplicate [0] ./page.js?D 3:0-30
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
chunk {3} 3.chunk.js 63 {9} [rendered]
[1] ./a.js 21 bytes {0} {1} {2} {4} {9} [built]
[3] ./c.js 21 bytes {1} {2} {3} {5} {8} {10} [built]
chunk {3} 3.chunk.js 63 bytes {9} [rendered]
> [0] ./page.js?A 4:0-37
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
[4] ./d.js 21 {1} {3} {5} [built]
chunk {4} pageB.bundle.js (pageB) 160 [rendered]
[2] ./b.js 21 bytes {3} {4} {6} {7} {8} {11} [built]
[3] ./c.js 21 bytes {1} {2} {3} {5} {8} {10} [built]
[4] ./d.js 21 bytes {1} {3} {5} [built]
chunk {4} pageB.bundle.js (pageB) 160 bytes [rendered]
> pageB [0] ./page.js?B
[0] ./page.js?B 118 {4} [built]
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
chunk {5} 5.chunk.js 42 {4} [rendered]
[0] ./page.js?B 118 bytes {4} [built]
[1] ./a.js 21 bytes {0} {1} {2} {4} {9} [built]
[2] ./b.js 21 bytes {3} {4} {6} {7} {8} {11} [built]
chunk {5} 5.chunk.js 42 bytes {4} [rendered]
> [0] ./page.js?B 4:0-37
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
[4] ./d.js 21 {1} {3} {5} [built]
chunk {6} pageD.bundle.js (pageD) 139 [rendered]
[3] ./c.js 21 bytes {1} {2} {3} {5} {8} {10} [built]
[4] ./d.js 21 bytes {1} {3} {5} [built]
chunk {6} pageD.bundle.js (pageD) 139 bytes [rendered]
> pageD [0] ./page.js?D
[0] ./page.js?D 118 {6} [built]
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
chunk {7} pageC.bundle.js (pageC) 139 [rendered]
[0] ./page.js?D 118 bytes {6} [built]
[2] ./b.js 21 bytes {3} {4} {6} {7} {8} {11} [built]
chunk {7} pageC.bundle.js (pageC) 139 bytes [rendered]
> pageC [0] ./page.js?C
[0] ./page.js?C 118 {7} [built]
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
chunk {8} 8.chunk.js 42 {9} [rendered]
[0] ./page.js?C 118 bytes {7} [built]
[2] ./b.js 21 bytes {3} {4} {6} {7} {8} {11} [built]
chunk {8} 8.chunk.js 42 bytes {9} [rendered]
> [0] ./page.js?A 3:0-30
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
chunk {9} pageA.bundle.js (pageA) 139 [rendered]
[2] ./b.js 21 bytes {3} {4} {6} {7} {8} {11} [built]
[3] ./c.js 21 bytes {1} {2} {3} {5} {8} {10} [built]
chunk {9} pageA.bundle.js (pageA) 139 bytes [rendered]
> pageA [0] ./page.js?A
[0] ./page.js?A 118 {9} [built]
[1] ./a.js 21 {0} {1} {2} {4} {9} [built]
chunk {10} 10.chunk.js 21 {4} [rendered]
[0] ./page.js?A 118 bytes {9} [built]
[1] ./a.js 21 bytes {0} {1} {2} {4} {9} [built]
chunk {10} 10.chunk.js 21 bytes {4} [rendered]
> [0] ./page.js?B 3:0-30
[3] ./c.js 21 {1} {2} {3} {5} {8} {10} [built]
chunk {11} 11.chunk.js 21 {9} [rendered]
[3] ./c.js 21 bytes {1} {2} {3} {5} {8} {10} [built]
chunk {11} 11.chunk.js 21 bytes {9} [rendered]
> [0] ./page.js?A 2:0-23
[2] ./b.js 21 {3} {4} {6} {7} {8} {11} [built]
WARNING in pageB.bundle.js from UglifyJs
Dropping side-effect-free statement [./page.js?B:1,0]
Dropping side-effect-free statement [./page.js?B:2,0]
WARNING in pageA.bundle.js from UglifyJs
Dropping side-effect-free statement [./page.js?A:1,0]
[2] ./b.js 21 bytes {3} {4} {6} {7} {8} {11} [built]
```

View File

@ -49,41 +49,41 @@ module.exports = [
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -101,7 +101,7 @@ module.exports = [
console.log("Running " + ("desktop") + " build");
/***/ }
/******/ ])
/******/ ]);
```
# js/mobile.js
@ -110,41 +110,41 @@ module.exports = [
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -166,12 +166,12 @@ module.exports = [
/*!*************************!*\
!*** ./mobile-stuff.js ***!
\*************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// mobile only stuff
/***/ }
/******/ ])
/******/ ]);
```
# Info
@ -180,34 +180,34 @@ module.exports = [
```
Hash: f7ca6364953a74846973bca985cdc67a34d859e1
Version: webpack 1.5.0
Version: webpack 1.9.10
Child mobile:
Hash: f7ca6364953a74846973
Version: webpack 1.5.0
Time: 42ms
Asset Size Chunks Chunk Names
mobile.js 1878 0 [emitted] main
chunk {0} mobile.js (main) 117 [rendered]
Version: webpack 1.9.10
Time: 75ms
Asset Size Chunks Chunk Names
mobile.js 1.77 kB 0 [emitted] main
chunk {0} mobile.js (main) 117 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 97 {0} [built]
[1] ./mobile-stuff.js 20 {0} [built]
[0] ./example.js 97 bytes {0} [built]
[1] ./mobile-stuff.js 20 bytes {0} [built]
cjs require ./mobile-stuff [0] ./example.js 2:1-26
Child desktop:
Hash: bca985cdc67a34d859e1
Version: webpack 1.5.0
Time: 34ms
Asset Size Chunks Chunk Names
desktop.js 1673 0 [emitted] main
chunk {0} desktop.js (main) 97 [rendered]
Version: webpack 1.9.10
Time: 60ms
Asset Size Chunks Chunk Names
desktop.js 1.59 kB 0 [emitted] main
chunk {0} desktop.js (main) 97 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 97 {0} [built]
[0] ./example.js 97 bytes {0} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: ddb8434066401a5c4dde50e9cbb599a11735e6bb
Version: webpack 1.5.0
Hash: f7ca6364953a74846973bca985cdc67a34d859e1
Version: webpack 1.9.10
WARNING in (mobile) mobile.js from UglifyJs
Condition always true [./example.js:1,0]
@ -216,28 +216,28 @@ WARNING in (desktop) desktop.js from UglifyJs
Condition always false [./example.js:1,0]
Dropping unreachable code [./example.js:2,0]
Child mobile:
Hash: ddb8434066401a5c4dde
Version: webpack 1.5.0
Time: 118ms
Asset Size Chunks Chunk Names
mobile.js 276 0 [emitted] main
chunk {0} mobile.js (main) 117 [rendered]
Hash: f7ca6364953a74846973
Version: webpack 1.9.10
Time: 193ms
Asset Size Chunks Chunk Names
mobile.js 279 bytes 0 [emitted] main
chunk {0} mobile.js (main) 117 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 97 {0} [built]
[1] ./mobile-stuff.js 20 {0} [built]
[0] ./example.js 97 bytes {0} [built]
[1] ./mobile-stuff.js 20 bytes {0} [built]
cjs require ./mobile-stuff [0] ./example.js 2:1-26
WARNING in mobile.js from UglifyJs
Condition always true [./example.js:1,0]
Child desktop:
Hash: 50e9cbb599a11735e6bb
Version: webpack 1.5.0
Time: 110ms
Asset Size Chunks Chunk Names
desktop.js 254 0 [emitted] main
chunk {0} desktop.js (main) 97 [rendered]
Hash: bca985cdc67a34d859e1
Version: webpack 1.9.10
Time: 178ms
Asset Size Chunks Chunk Names
desktop.js 259 bytes 0 [emitted] main
chunk {0} desktop.js (main) 97 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 97 {0} [built]
[0] ./example.js 97 bytes {0} [built]
WARNING in desktop.js from UglifyJs
Condition always false [./example.js:1,0]

View File

@ -46,41 +46,41 @@ module.exports = {
return /******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -90,13 +90,14 @@ return /******/ (function(modules) { // webpackBootstrap
/*!******************!*\
!*** ./alpha.js ***!
\******************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "alpha";
/***/ }
/******/ ])
});
;
```
# js/MyLibrary.beta.js
@ -115,41 +116,41 @@ return /******/ (function(modules) { // webpackBootstrap
return /******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -159,13 +160,14 @@ return /******/ (function(modules) { // webpackBootstrap
/*!*****************!*\
!*** ./beta.js ***!
\*****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "beta";
/***/ }
/******/ ])
});
;
```
# Info
@ -173,33 +175,33 @@ return /******/ (function(modules) { // webpackBootstrap
## Uncompressed
```
Hash: c7f999402520fa44f95c
Version: webpack 1.5.0
Time: 34ms
Asset Size Chunks Chunk Names
MyLibrary.beta.js 2011 0 [emitted] beta
MyLibrary.alpha.js 2017 1 [emitted] alpha
chunk {0} MyLibrary.beta.js (beta) 24 [rendered]
> beta [0] ./beta.js
[0] ./beta.js 24 {0} [built]
chunk {1} MyLibrary.alpha.js (alpha) 25 [rendered]
Hash: 618b766e9f4c28be5133
Version: webpack 1.9.10
Time: 67ms
Asset Size Chunks Chunk Names
MyLibrary.alpha.js 1.91 kB 0 [emitted] alpha
MyLibrary.beta.js 1.9 kB 1 [emitted] beta
chunk {0} MyLibrary.alpha.js (alpha) 25 bytes [rendered]
> alpha [0] ./alpha.js
[0] ./alpha.js 25 {1} [built]
[0] ./alpha.js 25 bytes {0} [built]
chunk {1} MyLibrary.beta.js (beta) 24 bytes [rendered]
> beta [0] ./beta.js
[0] ./beta.js 24 bytes {1} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 0f9197c2217d2ca4cce4
Version: webpack 1.5.0
Time: 138ms
Asset Size Chunks Chunk Names
MyLibrary.beta.js 485 0 [emitted] beta
MyLibrary.alpha.js 488 1 [emitted] alpha
chunk {0} MyLibrary.beta.js (beta) 24 [rendered]
Hash: c7f999402520fa44f95c
Version: webpack 1.9.10
Time: 186ms
Asset Size Chunks Chunk Names
MyLibrary.beta.js 487 bytes 0 [emitted] beta
MyLibrary.alpha.js 490 bytes 1 [emitted] alpha
chunk {0} MyLibrary.beta.js (beta) 24 bytes [rendered]
> beta [0] ./beta.js
[0] ./beta.js 24 {0} [built]
chunk {1} MyLibrary.alpha.js (alpha) 25 [rendered]
[0] ./beta.js 24 bytes {0} [built]
chunk {1} MyLibrary.alpha.js (alpha) 25 bytes [rendered]
> alpha [0] ./alpha.js
[0] ./alpha.js 25 {1} [built]
[0] ./alpha.js 25 bytes {1} [built]
```

View File

@ -91,49 +91,49 @@ module.exports = {
/******/ return __webpack_require__(0);
/******/ }
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 0:0,
/******/ 1:0
/******/ 7:0,
/******/ 8:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -145,50 +145,50 @@ module.exports = {
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"3":"pageB","4":"pageA","6":"admin-commons.js","7":"adminPageB","8":"adminPageA"}[chunkId]||chunkId) + ".js";
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"0":"adminPageA","1":"adminPageB","3":"pageA","4":"pageB","6":"admin-commons.js"}[chunkId]||chunkId) + ".js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/ })
/************************************************************************/
/******/ ({
/***/ 1:
/******/ ([
/* 0 */,
/* 1 */
/*!**************************!*\
!*** ./modules/a-b-c.js ***!
\**************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
/***/ },
/***/ 5:
/* 2 */,
/* 3 */
/*!************************!*\
!*** ./modules/a-b.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
/***/ }
/******/ })
/******/ ]);
```
# js/pageA.js
``` javascript
webpackJsonp([4],[
webpackJsonp([3],[
/* 0 */
/*!******************!*\
!*** ./pageA.js ***!
@ -196,20 +196,21 @@ webpackJsonp([4],[
/***/ function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./modules/a-b-c */ 1);
__webpack_require__(/*! ./modules/a-b */ 5);
__webpack_require__(/*! ./modules/a-c */ 3);
__webpack_require__(/*! ./modules/a-b */ 3);
__webpack_require__(/*! ./modules/a-c */ 4);
/***/ },
/* 1 */,
/* 2 */,
/* 3 */
/* 3 */,
/* 4 */
/*!************************!*\
!*** ./modules/a-c.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
/***/ }
]);
@ -224,9 +225,9 @@ webpackJsonp([6],{
/*!**************************!*\
!*** ./modules/admin.js ***!
\**************************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
/***/ }
@ -236,7 +237,7 @@ webpackJsonp([6],{
# js/adminPageA.js
``` javascript
webpackJsonp([8],[
webpackJsonp([0],[
/* 0 */
/*!***********************!*\
!*** ./adminPageA.js ***!
@ -255,151 +256,151 @@ webpackJsonp([8],[
## Uncompressed
```
Hash: c676a306c4af01dba069
Version: webpack 1.5.0
Time: 67ms
Asset Size Chunks Chunk Names
commons.js 4085 0, 1 [emitted] commons.js
c-commons.js 3857 1 [emitted] c-commons.js
pageC.js 656 2 [emitted] pageC
pageB.js 501 3 [emitted] pageB
pageA.js 492 4 [emitted] pageA
adminPageC.js 459 5, 6 [emitted] adminPageC
admin-commons.js 194 6 [emitted] admin-commons.js
adminPageB.js 278 7 [emitted] adminPageB
adminPageA.js 278 8 [emitted] adminPageA
chunk {0} commons.js (commons.js) 0 [rendered]
[1] ./modules/a-b-c.js 0 {0} {1} [built]
cjs require ./modules/a-b-c [0] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageC.js 1:0-26
[5] ./modules/a-b.js 0 {0} [built]
cjs require ./modules/a-b [0] ./pageA.js 2:0-24
cjs require ./modules/a-b [0] ./pageB.js 2:0-24
chunk {1} c-commons.js (c-commons.js) 0 [rendered]
[1] ./modules/a-b-c.js 0 {0} {1} [built]
cjs require ./modules/a-b-c [0] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageC.js 1:0-26
chunk {2} pageC.js (pageC) 83 {1} [rendered]
> pageC [0] ./pageC.js
[0] ./pageC.js 83 {2} [built]
[3] ./modules/a-c.js 0 {2} {4} [built]
cjs require ./modules/a-c [0] ./pageA.js 3:0-24
cjs require ./modules/a-c [0] ./pageC.js 3:0-24
[4] ./modules/b-c.js 0 {2} {3} [built]
cjs require ./modules/b-c [0] ./pageB.js 3:0-24
cjs require ./modules/b-c [0] ./pageC.js 2:0-24
chunk {3} pageB.js (pageB) 83 {0} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 83 {3} [built]
[4] ./modules/b-c.js 0 {2} {3} [built]
cjs require ./modules/b-c [0] ./pageB.js 3:0-24
cjs require ./modules/b-c [0] ./pageC.js 2:0-24
chunk {4} pageA.js (pageA) 83 {0} [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 83 {4} [built]
[3] ./modules/a-c.js 0 {2} {4} [built]
cjs require ./modules/a-c [0] ./pageA.js 3:0-24
cjs require ./modules/a-c [0] ./pageC.js 3:0-24
chunk {5} adminPageC.js (adminPageC) 56 {1} [rendered]
> adminPageC [0] ./adminPageC.js
[0] ./adminPageC.js 56 {5} [built]
[2] ./modules/admin.js 0 {5} {6} [built]
cjs require ./modules/admin [0] ./adminPageA.js 2:0-26
cjs require ./modules/admin [0] ./adminPageB.js 2:0-26
cjs require ./modules/admin [0] ./adminPageC.js 2:0-26
chunk {6} admin-commons.js (admin-commons.js) 0 {0} [rendered]
[2] ./modules/admin.js 0 {5} {6} [built]
cjs require ./modules/admin [0] ./adminPageA.js 2:0-26
cjs require ./modules/admin [0] ./adminPageB.js 2:0-26
cjs require ./modules/admin [0] ./adminPageC.js 2:0-26
chunk {7} adminPageB.js (adminPageB) 56 {6} [rendered]
> adminPageB [0] ./adminPageB.js
[0] ./adminPageB.js 56 {7} [built]
chunk {8} adminPageA.js (adminPageA) 56 {6} [rendered]
Hash: c8b70390c99c2fe1e001
Version: webpack 1.9.10
Time: 99ms
Asset Size Chunks Chunk Names
adminPageA.js 278 bytes 0 [emitted] adminPageA
adminPageB.js 278 bytes 1 [emitted] adminPageB
adminPageC.js 439 bytes 2, 6 [emitted] adminPageC
pageA.js 481 bytes 3 [emitted] pageA
pageB.js 459 bytes 4 [emitted] pageB
pageC.js 625 bytes 5 [emitted] pageC
admin-commons.js 174 bytes 6 [emitted] admin-commons.js
commons.js 3.96 kB 7, 8 [emitted] commons.js
c-commons.js 3.73 kB 8 [emitted] c-commons.js
chunk {0} adminPageA.js (adminPageA) 56 bytes {6} [rendered]
> adminPageA [0] ./adminPageA.js
[0] ./adminPageA.js 56 {8} [built]
[0] ./adminPageA.js 56 bytes {0} [built]
chunk {1} adminPageB.js (adminPageB) 56 bytes {6} [rendered]
> adminPageB [0] ./adminPageB.js
[0] ./adminPageB.js 56 bytes {1} [built]
chunk {2} adminPageC.js (adminPageC) 56 bytes {8} [rendered]
> adminPageC [0] ./adminPageC.js
[0] ./adminPageC.js 56 bytes {2} [built]
[2] ./modules/admin.js 0 bytes {2} {6} [built]
cjs require ./modules/admin [0] ./adminPageA.js 2:0-26
cjs require ./modules/admin [0] ./adminPageB.js 2:0-26
cjs require ./modules/admin [0] ./adminPageC.js 2:0-26
chunk {3} pageA.js (pageA) 83 bytes {7} [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 83 bytes {3} [built]
[4] ./modules/a-c.js 0 bytes {3} {5} [built]
cjs require ./modules/a-c [0] ./pageC.js 3:0-24
cjs require ./modules/a-c [0] ./pageA.js 3:0-24
chunk {4} pageB.js (pageB) 83 bytes {7} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 83 bytes {4} [built]
[5] ./modules/b-c.js 0 bytes {4} {5} [built]
cjs require ./modules/b-c [0] ./pageC.js 2:0-24
cjs require ./modules/b-c [0] ./pageB.js 3:0-24
chunk {5} pageC.js (pageC) 83 bytes {8} [rendered]
> pageC [0] ./pageC.js
[0] ./pageC.js 83 bytes {5} [built]
[4] ./modules/a-c.js 0 bytes {3} {5} [built]
cjs require ./modules/a-c [0] ./pageC.js 3:0-24
cjs require ./modules/a-c [0] ./pageA.js 3:0-24
[5] ./modules/b-c.js 0 bytes {4} {5} [built]
cjs require ./modules/b-c [0] ./pageC.js 2:0-24
cjs require ./modules/b-c [0] ./pageB.js 3:0-24
chunk {6} admin-commons.js (admin-commons.js) 0 bytes {7} [rendered]
[2] ./modules/admin.js 0 bytes {2} {6} [built]
cjs require ./modules/admin [0] ./adminPageA.js 2:0-26
cjs require ./modules/admin [0] ./adminPageB.js 2:0-26
cjs require ./modules/admin [0] ./adminPageC.js 2:0-26
chunk {7} commons.js (commons.js) 0 bytes [rendered]
[1] ./modules/a-b-c.js 0 bytes {7} {8} [built]
cjs require ./modules/a-b-c [0] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageC.js 1:0-26
[3] ./modules/a-b.js 0 bytes {7} [built]
cjs require ./modules/a-b [0] ./pageB.js 2:0-24
cjs require ./modules/a-b [0] ./pageA.js 2:0-24
chunk {8} c-commons.js (c-commons.js) 0 bytes [rendered]
[1] ./modules/a-b-c.js 0 bytes {7} {8} [built]
cjs require ./modules/a-b-c [0] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageC.js 1:0-26
```
## Minimized (uglify-js, no zip)
```
Hash: 938fb556f034e70b50c6
Version: webpack 1.5.0
Time: 173ms
Asset Size Chunks Chunk Names
commons.js 831 0, 1 [emitted] commons.js
c-commons.js 765 1 [emitted] c-commons.js
pageC.js 80 2 [emitted] pageC
pageB.js 68 3 [emitted] pageB
pageA.js 67 4 [emitted] pageA
adminPageC.js 63 5, 6 [emitted] adminPageC
admin-commons.js 35 6 [emitted] admin-commons.js
adminPageB.js 47 7 [emitted] adminPageB
adminPageA.js 47 8 [emitted] adminPageA
chunk {0} commons.js (commons.js) 0 [rendered]
[1] ./modules/a-b-c.js 0 {0} {1} [built]
cjs require ./modules/a-b-c [0] ./pageA.js 1:0-26
Hash: c676a306c4af01dba069
Version: webpack 1.9.10
Time: 345ms
Asset Size Chunks Chunk Names
commons.js 837 bytes 0, 1 [emitted] commons.js
c-commons.js 768 bytes 1 [emitted] c-commons.js
pageC.js 86 bytes 2 [emitted] pageC
pageB.js 71 bytes 3 [emitted] pageB
pageA.js 70 bytes 4 [emitted] pageA
adminPageC.js 66 bytes 5, 6 [emitted] adminPageC
admin-commons.js 38 bytes 6 [emitted] admin-commons.js
adminPageB.js 47 bytes 7 [emitted] adminPageB
adminPageA.js 47 bytes 8 [emitted] adminPageA
chunk {0} commons.js (commons.js) 0 bytes [rendered]
[1] ./modules/a-b-c.js 0 bytes {0} {1} [built]
cjs require ./modules/a-b-c [0] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageC.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageB.js 1:0-26
[5] ./modules/a-b.js 0 {0} [built]
cjs require ./modules/a-b [0] ./pageA.js 2:0-24
[5] ./modules/a-b.js 0 bytes {0} [built]
cjs require ./modules/a-b [0] ./pageB.js 2:0-24
chunk {1} c-commons.js (c-commons.js) 0 [rendered]
[1] ./modules/a-b-c.js 0 {0} {1} [built]
cjs require ./modules/a-b-c [0] ./pageA.js 1:0-26
cjs require ./modules/a-b [0] ./pageA.js 2:0-24
chunk {1} c-commons.js (c-commons.js) 0 bytes [rendered]
[1] ./modules/a-b-c.js 0 bytes {0} {1} [built]
cjs require ./modules/a-b-c [0] ./pageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./pageC.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageB.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageA.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageC.js 1:0-26
cjs require ./modules/a-b-c [0] ./adminPageB.js 1:0-26
chunk {2} pageC.js (pageC) 83 {1} [rendered]
chunk {2} pageC.js (pageC) 83 bytes {1} [rendered]
> pageC [0] ./pageC.js
[0] ./pageC.js 83 {2} [built]
[3] ./modules/a-c.js 0 {2} {4} [built]
[0] ./pageC.js 83 bytes {2} [built]
[3] ./modules/a-c.js 0 bytes {2} {4} [built]
cjs require ./modules/a-c [0] ./pageA.js 3:0-24
cjs require ./modules/a-c [0] ./pageC.js 3:0-24
[4] ./modules/b-c.js 0 {2} {3} [built]
[4] ./modules/b-c.js 0 bytes {2} {3} [built]
cjs require ./modules/b-c [0] ./pageB.js 3:0-24
cjs require ./modules/b-c [0] ./pageC.js 2:0-24
chunk {3} pageB.js (pageB) 83 {0} [rendered]
chunk {3} pageB.js (pageB) 83 bytes {0} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 83 {3} [built]
[4] ./modules/b-c.js 0 {2} {3} [built]
[0] ./pageB.js 83 bytes {3} [built]
[4] ./modules/b-c.js 0 bytes {2} {3} [built]
cjs require ./modules/b-c [0] ./pageB.js 3:0-24
cjs require ./modules/b-c [0] ./pageC.js 2:0-24
chunk {4} pageA.js (pageA) 83 {0} [rendered]
chunk {4} pageA.js (pageA) 83 bytes {0} [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 83 {4} [built]
[3] ./modules/a-c.js 0 {2} {4} [built]
[0] ./pageA.js 83 bytes {4} [built]
[3] ./modules/a-c.js 0 bytes {2} {4} [built]
cjs require ./modules/a-c [0] ./pageA.js 3:0-24
cjs require ./modules/a-c [0] ./pageC.js 3:0-24
chunk {5} adminPageC.js (adminPageC) 56 {1} [rendered]
chunk {5} adminPageC.js (adminPageC) 56 bytes {1} [rendered]
> adminPageC [0] ./adminPageC.js
[0] ./adminPageC.js 56 {5} [built]
[2] ./modules/admin.js 0 {5} {6} [built]
[0] ./adminPageC.js 56 bytes {5} [built]
[2] ./modules/admin.js 0 bytes {5} {6} [built]
cjs require ./modules/admin [0] ./adminPageB.js 2:0-26
cjs require ./modules/admin [0] ./adminPageA.js 2:0-26
cjs require ./modules/admin [0] ./adminPageC.js 2:0-26
chunk {6} admin-commons.js (admin-commons.js) 0 bytes {0} [rendered]
[2] ./modules/admin.js 0 bytes {5} {6} [built]
cjs require ./modules/admin [0] ./adminPageB.js 2:0-26
chunk {6} admin-commons.js (admin-commons.js) 0 {0} [rendered]
[2] ./modules/admin.js 0 {5} {6} [built]
cjs require ./modules/admin [0] ./adminPageA.js 2:0-26
cjs require ./modules/admin [0] ./adminPageC.js 2:0-26
cjs require ./modules/admin [0] ./adminPageB.js 2:0-26
chunk {7} adminPageB.js (adminPageB) 56 {6} [rendered]
chunk {7} adminPageB.js (adminPageB) 56 bytes {6} [rendered]
> adminPageB [0] ./adminPageB.js
[0] ./adminPageB.js 56 {7} [built]
chunk {8} adminPageA.js (adminPageA) 56 {6} [rendered]
[0] ./adminPageB.js 56 bytes {7} [built]
chunk {8} adminPageA.js (adminPageA) 56 bytes {6} [rendered]
> adminPageA [0] ./adminPageA.js
[0] ./adminPageA.js 56 {8} [built]
[0] ./adminPageA.js 56 bytes {8} [built]
```

View File

@ -87,29 +87,31 @@ module.exports = {
# js/A.js
``` javascript
webpackJsonp([3],[
/* 0 */
webpackJsonp([0],{
/***/ 0:
/*!**************!*\
!*** ./a.js ***!
\**************/
/***/ function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./style.css */ 1);
__webpack_require__(/*! ./styleA.css */ 2);
__webpack_require__(/*! ./styleA.css */ 6);
/***/ },
/* 1 */,
/* 2 */
/***/ 6:
/*!********************!*\
!*** ./styleA.css ***!
\********************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }
]);
});
```
# js/commons.css
@ -165,157 +167,153 @@ body{background:url(js/ce21cbdd9b894e6af794813eb3fdaf60.png)}.c{background:url(j
## Uncompressed
```
Hash: 0297acc957f5304cd999
Version: webpack 1.5.3
Time: 284ms
Asset Size Chunks Chunk Names
B.js 458 2 [emitted] B
16155c689e517682064c99893cb832cc.png 120 [emitted]
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
c2a2f62d69330b7d787782f5010f9d13.png 120 [emitted]
C.js 1824 0 [emitted] C
commons.js 3865 1 [emitted] commons
d090b6fba0f6d326d282a19146ff54a7.png 120 [emitted]
A.js 449 3 [emitted] A
B.css 69 2 [emitted] B
A.css 69 3 [emitted] A
C.css 142 0 [emitted] C
commons.css 71 1 [emitted] commons
chunk {0} C.js, C.css (C) 67 [rendered]
Hash: e472dd55323cb31ba6bd
Version: webpack 1.9.10
Time: 467ms
Asset Size Chunks Chunk Names
C.js 1.7 kB 2 [emitted] C
d090b6fba0f6d326d282a19146ff54a7.png 120 bytes [emitted]
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted]
A.js 424 bytes 0 [emitted] A
B.js 424 bytes 1 [emitted] B
16155c689e517682064c99893cb832cc.png 120 bytes [emitted]
commons.js 3.74 kB 3 [emitted] commons
A.css 69 bytes 0 [emitted] A
B.css 69 bytes 1 [emitted] B
C.css 142 bytes 2 [emitted] C
commons.css 71 bytes 3 [emitted] commons
chunk {0} A.js, A.css (A) 92 bytes {3} [rendered]
> A [0] ./a.js
[0] ./a.js 51 bytes {0} [built]
[6] ./styleA.css 41 bytes {0} [built]
cjs require ./styleA.css [0] ./a.js 2:0-23
chunk {1} B.js, B.css (B) 92 bytes {3} [rendered]
> B [0] ./b.js
[0] ./b.js 51 bytes {1} [built]
[9] ./styleB.css 41 bytes {1} [built]
cjs require ./styleB.css [0] ./b.js 2:0-23
chunk {2} C.js, C.css (C) 67 bytes [rendered]
> C [0] ./c.js
[0] ./c.js 26 {0} [built]
[4] ./styleC.css 41 {0} [built]
[0] ./c.js 26 bytes {2} [built]
[12] ./styleC.css 41 bytes {2} [built]
cjs require ./styleC.css [0] ./c.js 1:0-23
chunk {1} commons.js, commons.css (commons) 41 [rendered]
[1] ./style.css 41 {1} [built]
chunk {3} commons.js, commons.css (commons) 41 bytes [rendered]
[1] ./style.css 41 bytes {3} [built]
cjs require ./style.css [0] ./b.js 1:0-22
cjs require ./style.css [0] ./a.js 1:0-22
chunk {2} B.js, B.css (B) 92 {1} [rendered]
> B [0] ./b.js
[0] ./b.js 51 {2} [built]
[3] ./styleB.css 41 {2} [built]
cjs require ./styleB.css [0] ./b.js 2:0-23
chunk {3} A.js, A.css (A) 92 {1} [rendered]
> A [0] ./a.js
[0] ./a.js 51 {3} [built]
[2] ./styleA.css 41 {3} [built]
cjs require ./styleA.css [0] ./a.js 2:0-23
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\styleB.css 636 [rendered]
> [0] (webpack)/~/css-loader!./styleB.css
[0] (webpack)/~/css-loader!./styleB.css 203 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./styleB.css 1:27-101
[2] ./imageB.png 81 {0} [built]
cjs require ./imageB.png [0] (webpack)/~/css-loader!./styleB.css 2:54-77
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\styleA.css 636 [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 1.77 kB [rendered]
> [0] (webpack)/~/css-loader!./styleA.css
[0] (webpack)/~/css-loader!./styleA.css 203 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./styleA.css 1:27-101
[2] ./imageA.png 81 {0} [built]
[0] (webpack)/~/css-loader!./styleA.css 187 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./styleA.css 1:27-85
[2] ./imageA.png 81 bytes {0} [built]
cjs require ./imageA.png [0] (webpack)/~/css-loader!./styleA.css 2:54-77
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\styleC.css 1386 [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 1.77 kB [rendered]
> [0] (webpack)/~/css-loader!./styleB.css
[0] (webpack)/~/css-loader!./styleB.css 187 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./styleB.css 1:27-85
[2] ./imageB.png 81 bytes {0} [built]
cjs require ./imageB.png [0] (webpack)/~/css-loader!./styleB.css 2:54-77
Child extract-text-webpack-plugin:
chunk {0} extract-text-webpack-plugin-output-filename 2.13 kB [rendered]
> [0] (webpack)/~/css-loader!./styleC.css
[0] (webpack)/~/css-loader!./styleC.css 380 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./styleC.css 1:27-101
cjs require (webpack)/~\css-loader\cssToString.js [2] (webpack)/~/css-loader!./style.css 1:27-101
[2] (webpack)/~/css-loader!./style.css 204 {0} [built]
cjs require -!(webpack)/~\css-loader\index.js!./style.css [0] (webpack)/~/css-loader!./styleC.css 2:84-166
[3] (webpack)/~/css-loader/mergeImport.js 288 {0} [built]
cjs require (webpack)/~\css-loader\mergeImport.js [0] (webpack)/~/css-loader!./styleC.css 2:0-74
[4] ./image.png 81 {0} [built]
[0] (webpack)/~/css-loader!./styleC.css 273 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./styleC.css 1:27-85
cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style.css 1:27-85
[2] (webpack)/~/css-loader!./style.css 188 bytes {0} [built]
cjs require -!./../../node_modules/css-loader/index.js!./style.css [0] (webpack)/~/css-loader!./styleC.css 2:10-75
[3] ./image.png 81 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 2:56-78
[5] ./imageC.png 81 {0} [built]
[4] ./imageC.png 81 bytes {0} [built]
cjs require ./imageC.png [0] (webpack)/~/css-loader!./styleC.css 3:58-81
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\style.css 637 [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 1.77 kB [rendered]
> [0] (webpack)/~/css-loader!./style.css
[0] (webpack)/~/css-loader!./style.css 204 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./style.css 1:27-101
[2] ./image.png 81 {0} [built]
[0] (webpack)/~/css-loader!./style.css 188 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./style.css 1:27-85
[2] ./image.png 81 bytes {0} [built]
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:56-78
```
## Minimized (uglify-js, no zip)
```
Hash: c2e7cad10a4804a5a5d5
Version: webpack 1.5.3
Time: 462ms
Asset Size Chunks Chunk Names
B.js 62 2 [emitted] B
16155c689e517682064c99893cb832cc.png 120 [emitted]
c2a2f62d69330b7d787782f5010f9d13.png 120 [emitted]
d090b6fba0f6d326d282a19146ff54a7.png 120 [emitted]
C.js 243 0 [emitted] C
commons.js 752 1 [emitted] commons
ce21cbdd9b894e6af794813eb3fdaf60.png 119 [emitted]
A.js 61 3 [emitted] A
B.css 59 2 [emitted] B
C.css 120 0 [emitted] C
A.css 59 3 [emitted] A
commons.css 61 1 [emitted] commons
chunk {0} C.js, C.css (C) 67 [rendered]
Hash: 38d8b93152fcfe6923ba
Version: webpack 1.9.10
Time: 737ms
Asset Size Chunks Chunk Names
B.js 65 bytes 2 [emitted] B
d090b6fba0f6d326d282a19146ff54a7.png 120 bytes [emitted]
ce21cbdd9b894e6af794813eb3fdaf60.png 119 bytes [emitted]
c2a2f62d69330b7d787782f5010f9d13.png 120 bytes [emitted]
C.js 246 bytes 0 [emitted] C
commons.js 755 bytes 1 [emitted] commons
16155c689e517682064c99893cb832cc.png 120 bytes [emitted]
A.js 64 bytes 3 [emitted] A
A.css 59 bytes 3 [emitted] A
B.css 59 bytes 2 [emitted] B
C.css 120 bytes 0 [emitted] C
commons.css 61 bytes 1 [emitted] commons
chunk {0} C.js, C.css (C) 67 bytes [rendered]
> C [0] ./c.js
[0] ./c.js 26 {0} [built]
[4] ./styleC.css 41 {0} [built]
[0] ./c.js 26 bytes {0} [built]
[4] ./styleC.css 41 bytes {0} [built]
cjs require ./styleC.css [0] ./c.js 1:0-23
chunk {1} commons.js, commons.css (commons) 41 [rendered]
[1] ./style.css 41 {1} [built]
cjs require ./style.css [0] ./a.js 1:0-22
chunk {1} commons.js, commons.css (commons) 41 bytes [rendered]
[1] ./style.css 41 bytes {1} [built]
cjs require ./style.css [0] ./b.js 1:0-22
chunk {2} B.js, B.css (B) 92 {1} [rendered]
cjs require ./style.css [0] ./a.js 1:0-22
chunk {2} B.js, B.css (B) 92 bytes {1} [rendered]
> B [0] ./b.js
[0] ./b.js 51 {2} [built]
[3] ./styleB.css 41 {2} [built]
[0] ./b.js 51 bytes {2} [built]
[3] ./styleB.css 41 bytes {2} [built]
cjs require ./styleB.css [0] ./b.js 2:0-23
chunk {3} A.js, A.css (A) 92 {1} [rendered]
chunk {3} A.js, A.css (A) 92 bytes {1} [rendered]
> A [0] ./a.js
[0] ./a.js 51 {3} [built]
[2] ./styleA.css 41 {3} [built]
[0] ./a.js 51 bytes {3} [built]
[2] ./styleA.css 41 bytes {3} [built]
cjs require ./styleA.css [0] ./a.js 2:0-23
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\styleB.css 619 [rendered]
> [0] (webpack)/~/css-loader!./styleB.css
[0] (webpack)/~/css-loader!./styleB.css 186 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./styleB.css 1:27-101
[2] ./imageB.png 81 {0} [built]
cjs require ./imageB.png [0] (webpack)/~/css-loader!./styleB.css 2:46-69
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\styleC.css 1348 [rendered]
> [0] (webpack)/~/css-loader!./styleC.css
[0] (webpack)/~/css-loader!./styleC.css 359 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./styleC.css 1:27-101
cjs require (webpack)/~\css-loader\cssToString.js [2] (webpack)/~/css-loader!./style.css 1:27-101
[2] (webpack)/~/css-loader!./style.css 187 {0} [built]
cjs require -!(webpack)/~\css-loader\index.js!./style.css [0] (webpack)/~/css-loader!./styleC.css 2:84-166
[3] (webpack)/~/css-loader/mergeImport.js 288 {0} [built]
cjs require (webpack)/~\css-loader\mergeImport.js [0] (webpack)/~/css-loader!./styleC.css 2:0-74
[4] ./image.png 81 {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 2:48-70
[5] ./imageC.png 81 {0} [built]
cjs require ./imageC.png [0] (webpack)/~/css-loader!./styleC.css 3:46-69
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\styleA.css 619 [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 1.76 kB [rendered]
> [0] (webpack)/~/css-loader!./styleA.css
[0] (webpack)/~/css-loader!./styleA.css 186 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./styleA.css 1:27-101
[2] ./imageA.png 81 {0} [built]
[0] (webpack)/~/css-loader!./styleA.css 170 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./styleA.css 1:27-85
[2] ./imageA.png 81 bytes {0} [built]
cjs require ./imageA.png [0] (webpack)/~/css-loader!./styleA.css 2:46-69
Child extract-text-webpack-plugin:
chunk {0} (webpack)/~\extract-text-webpack-plugin (webpack)/~\css-loader\index.js!.\style.css 620 [rendered]
chunk {0} extract-text-webpack-plugin-output-filename 1.76 kB [rendered]
> [0] (webpack)/~/css-loader!./styleB.css
[0] (webpack)/~/css-loader!./styleB.css 170 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./styleB.css 1:27-85
[2] ./imageB.png 81 bytes {0} [built]
cjs require ./imageB.png [0] (webpack)/~/css-loader!./styleB.css 2:46-69
Child extract-text-webpack-plugin:
chunk {0} extract-text-webpack-plugin-output-filename 2.09 kB [rendered]
> [0] (webpack)/~/css-loader!./styleC.css
[0] (webpack)/~/css-loader!./styleC.css 252 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./styleC.css 1:27-85
cjs require ./../../node_modules/css-loader/lib/css-base.js [2] (webpack)/~/css-loader!./style.css 1:27-85
[2] (webpack)/~/css-loader!./style.css 171 bytes {0} [built]
cjs require -!./../../node_modules/css-loader/index.js!./style.css [0] (webpack)/~/css-loader!./styleC.css 2:10-75
[3] ./image.png 81 bytes {0} [built]
cjs require ./image.png [2] (webpack)/~/css-loader!./style.css 2:48-70
[4] ./imageC.png 81 bytes {0} [built]
cjs require ./imageC.png [0] (webpack)/~/css-loader!./styleC.css 3:46-69
Child extract-text-webpack-plugin:
chunk {0} extract-text-webpack-plugin-output-filename 1.76 kB [rendered]
> [0] (webpack)/~/css-loader!./style.css
[0] (webpack)/~/css-loader!./style.css 187 {0} [built]
[1] (webpack)/~/css-loader/cssToString.js 352 {0} [built]
cjs require (webpack)/~\css-loader\cssToString.js [0] (webpack)/~/css-loader!./style.css 1:27-101
[2] ./image.png 81 {0} [built]
[0] (webpack)/~/css-loader!./style.css 171 bytes {0} [built]
[1] (webpack)/~/css-loader/lib/css-base.js 1.51 kB {0} [built]
cjs require ./../../node_modules/css-loader/lib/css-base.js [0] (webpack)/~/css-loader!./style.css 1:27-85
[2] ./image.png 81 bytes {0} [built]
cjs require ./image.png [0] (webpack)/~/css-loader!./style.css 2:48-70
```

View File

@ -63,7 +63,7 @@ module.exports = {
plugins: [
new CommonsChunkPlugin("commons.js")
]
};
}
```
# pageA.html
@ -105,48 +105,48 @@ module.exports = {
/******/ return __webpack_require__(0);
/******/ }
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 1:0
/******/ 3:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -158,17 +158,18 @@ module.exports = {
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".chunk.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/ })
@ -179,18 +180,18 @@ module.exports = {
/*!*******************!*\
!*** ./common.js ***!
\*******************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "Common";
/***/ }
/******/ ])
/******/ ]);
```
# js/pageA.bundle.js
``` javascript
webpackJsonp([3],[
webpackJsonp([0],[
/* 0 */
/*!******************!*\
!*** ./pageA.js ***!
@ -198,7 +199,7 @@ webpackJsonp([3],[
/***/ function(module, exports, __webpack_require__) {
var common = __webpack_require__(/*! ./common */ 1);
__webpack_require__.e/* require */(0/* duplicate */, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./shared */ 2)]; (function(shared) {
__webpack_require__.e/* require */(1, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ./shared */ 2)]; (function(shared) {
shared("This is page A");
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
@ -217,7 +218,7 @@ webpackJsonp([2],[
/***/ function(module, exports, __webpack_require__) {
var common = __webpack_require__(/*! ./common */ 1);
__webpack_require__.e/* nsure */(0, function(require) {
__webpack_require__.e/* nsure */(1/* duplicate */, function(require) {
var shared = __webpack_require__(/*! ./shared */ 2);
shared("This is page B");
});
@ -226,10 +227,10 @@ webpackJsonp([2],[
]);
```
# js/0.chunk.js
# js/1.chunk.js
``` javascript
webpackJsonp([0],{
webpackJsonp([1],{
/***/ 2:
/*!*******************!*\
@ -252,69 +253,68 @@ webpackJsonp([0],{
## Uncompressed
```
Hash: b949c618c2e80c190aea
Version: webpack 1.5.0
Time: 45ms
Asset Size Chunks Chunk Names
0.chunk.js 287 0 [emitted]
commons.js 3810 1 [emitted] commons.js
pageB.bundle.js 369 2 [emitted] pageB
pageA.bundle.js 486 3 [emitted] pageA
chunk {0} 0.chunk.js 91 {2} {3} [rendered]
> [0] ./pageB.js 2:0-5:2
> duplicate [0] ./pageA.js 2:0-4:2
[2] ./shared.js 91 {0} [built]
Hash: 7061430bd2b90d83e1d2
Version: webpack 1.9.10
Time: 80ms
Asset Size Chunks Chunk Names
pageA.bundle.js 471 bytes 0 [emitted] pageA
1.chunk.js 287 bytes 1 [emitted]
pageB.bundle.js 384 bytes 2 [emitted] pageB
commons.js 3.69 kB 3 [emitted] commons.js
chunk {0} pageA.bundle.js (pageA) 108 bytes {3} [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 108 bytes {0} [built]
chunk {1} 1.chunk.js 91 bytes {0} {2} [rendered]
> [0] ./pageA.js 2:0-4:2
> duplicate [0] ./pageB.js 2:0-5:2
[2] ./shared.js 91 bytes {1} [built]
amd require ./shared [0] ./pageA.js 2:0-4:2
require.ensure item ./shared [0] ./pageB.js 2:0-5:2
cjs require ./shared [0] ./pageB.js 3:14-33
chunk {1} commons.js (commons.js) 26 [rendered]
[1] ./common.js 26 {1} [built]
chunk {2} pageB.bundle.js (pageB) 152 bytes {3} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 152 bytes {2} [built]
chunk {3} commons.js (commons.js) 26 bytes [rendered]
[1] ./common.js 26 bytes {3} [built]
cjs require ./common [0] ./pageA.js 1:13-32
cjs require ./common [0] ./pageB.js 1:13-32
cjs require ./common [2] ./shared.js 1:13-32
chunk {2} pageB.bundle.js (pageB) 152 {1} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 152 {2} [built]
chunk {3} pageA.bundle.js (pageA) 108 {1} [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 108 {3} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 4a59c0aaddb7b911a672
Version: webpack 1.5.0
Time: 139ms
Asset Size Chunks Chunk Names
0.chunk.js 82 0 [emitted]
commons.js 751 1 [emitted] commons.js
pageB.bundle.js 92 2 [emitted] pageB
pageA.bundle.js 124 3 [emitted] pageA
chunk {0} 0.chunk.js 91 {2} {3} [rendered]
> [0] ./pageB.js 2:0-5:2
> duplicate [0] ./pageA.js 2:0-4:2
[2] ./shared.js 91 {0} [built]
Hash: 50883fab51924b1ba6bc
Version: webpack 1.9.10
Time: 254ms
Asset Size Chunks Chunk Names
0.chunk.js 82 bytes 0 [emitted]
commons.js 753 bytes 1 [emitted] commons.js
pageB.bundle.js 93 bytes 2 [emitted] pageB
pageA.bundle.js 124 bytes 3 [emitted] pageA
chunk {0} 0.chunk.js 91 bytes {3} {2} [rendered]
> [0] ./pageA.js 2:0-4:2
> duplicate [0] ./pageB.js 2:0-5:2
[2] ./shared.js 91 bytes {0} [built]
amd require ./shared [0] ./pageA.js 2:0-4:2
require.ensure item ./shared [0] ./pageB.js 2:0-5:2
cjs require ./shared [0] ./pageB.js 3:14-33
chunk {1} commons.js (commons.js) 26 [rendered]
[1] ./common.js 26 {1} [built]
chunk {1} commons.js (commons.js) 26 bytes [rendered]
[1] ./common.js 26 bytes {1} [built]
cjs require ./common [0] ./pageA.js 1:13-32
cjs require ./common [0] ./pageB.js 1:13-32
cjs require ./common [2] ./shared.js 1:13-32
chunk {2} pageB.bundle.js (pageB) 152 {1} [rendered]
chunk {2} pageB.bundle.js (pageB) 152 bytes {1} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 152 {2} [built]
chunk {3} pageA.bundle.js (pageA) 108 {1} [rendered]
[0] ./pageB.js 152 bytes {2} [built]
chunk {3} pageA.bundle.js (pageA) 108 bytes {1} [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 108 {3} [built]
[0] ./pageA.js 108 bytes {3} [built]
WARNING in 0.chunk.js from UglifyJs
Side effects in initialization of unused variable common [./shared.js:1,0]
WARNING in pageB.bundle.js from UglifyJs
Dropping unused function argument require [./pageB.js:2,0]
Side effects in initialization of unused variable common [./pageB.js:1,0]
WARNING in pageA.bundle.js from UglifyJs

View File

@ -68,10 +68,10 @@ You can also see the info that is printed to console. It shows among others:
{{js/pageB.bundle.js}}
```
# js/0.chunk.js
# js/1.chunk.js
``` javascript
{{js/0.chunk.js}}
{{js/1.chunk.js}}
```
# Info

View File

@ -46,50 +46,50 @@ require.ensure(["b"], function(require) {
/******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ while(callbacks.length)
/******/ callbacks.shift().call(null, __webpack_require__);
/******/
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 2:0
/******/ 0:0
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ // "0" is the signal for "already loaded"
/******/ if(installedChunks[chunkId] === 0)
/******/ return callback.call(null, __webpack_require__);
/******/
/******/ // an array means "currently loading".
/******/ if(installedChunks[chunkId] !== undefined) {
/******/ installedChunks[chunkId].push(callback);
@ -101,20 +101,21 @@ require.ensure(["b"], function(require) {
/******/ script.type = 'text/javascript';
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
/******/ head.appendChild(script);
/******/ }
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -126,98 +127,98 @@ require.ensure(["b"], function(require) {
\********************/
/***/ function(module, exports, __webpack_require__) {
var a = __webpack_require__(/*! a */ 3);
var a = __webpack_require__(/*! a */ 1);
__webpack_require__.e/* nsure */(0/*! my own chunk */, function(require) {
__webpack_require__.e/* nsure */(1/*! my own chunk */, function(require) {
// a named chunk
var c = __webpack_require__(/*! c */ 4);
var c = __webpack_require__(/*! c */ 3);
});
__webpack_require__.e/* nsure */(0/*! my own chunk */, function(require) {
__webpack_require__.e/* nsure */(1/*! my own chunk */, function(require) {
// another chunk with the same name
var d = __webpack_require__(/*! d */ 2);
var d = __webpack_require__(/*! d */ 4);
});
__webpack_require__.e/* nsure */(0/*! my own chunk */, function(require) {
__webpack_require__.e/* nsure */(1/*! my own chunk */, function(require) {
// the same again
});
__webpack_require__.e/* nsure */(1, function(require) {
__webpack_require__.e/* nsure */(2, function(require) {
// chunk without name
var d = __webpack_require__(/*! d */ 2);
var d = __webpack_require__(/*! d */ 4);
});
/***/ },
/* 1 */,
/* 2 */,
/* 3 */
/* 1 */
/*!****************!*\
!*** ./~/a.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// module a
/***/ }
/******/ ])
```
# js/0.output.js
``` javascript
webpackJsonp([0,1],[
/* 0 */,
/* 1 */
/*!****************!*\
!*** ./~/b.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
// module b
/***/ },
/* 2 */
/*!****************!*\
!*** ./~/d.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
// module d
/***/ },
/* 3 */,
/* 4 */
/*!****************!*\
!*** ./~/c.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
// module c
/***/ }
]);
/******/ ]);
```
# js/1.output.js
``` javascript
webpackJsonp([1],[
webpackJsonp([1,2],[
/* 0 */,
/* 1 */
/* 1 */,
/* 2 */
/*!****************!*\
!*** ./~/b.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// module b
/***/ },
/* 2 */
/* 3 */
/*!****************!*\
!*** ./~/c.js ***!
\****************/
/***/ function(module, exports) {
// module c
/***/ },
/* 4 */
/*!****************!*\
!*** ./~/d.js ***!
\****************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
// module d
/***/ }
]);
```
# js/2.output.js
``` javascript
webpackJsonp([2],[
/* 0 */,
/* 1 */,
/* 2 */
/*!****************!*\
!*** ./~/b.js ***!
\****************/
/***/ function(module, exports) {
// module b
/***/ },
/* 3 */,
/* 4 */
/*!****************!*\
!*** ./~/d.js ***!
\****************/
/***/ function(module, exports) {
// module d
@ -230,87 +231,83 @@ webpackJsonp([1],[
## Uncompressed
```
Hash: 9e56ba606ce1e70e22a7
Version: webpack 1.5.0
Time: 49ms
Asset Size Chunks Chunk Names
0.output.js 497 0, 1 [emitted] my own chunk
1.output.js 334 1 [emitted]
output.js 4533 2 [emitted] main
chunk {0} 0.output.js (my own chunk) 33 {2} [rendered]
Hash: 66115f67bc0d0bf491a2
Version: webpack 1.9.10
Time: 85ms
Asset Size Chunks Chunk Names
output.js 4.38 kB 0 [emitted] main
1.output.js 434 bytes 1, 2 [emitted] my own chunk
2.output.js 310 bytes 2 [emitted]
chunk {0} output.js (main) 452 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 441 bytes {0} [built]
[1] ./~/a.js 11 bytes {0} [built]
cjs require a [0] ./example.js 1:8-20
chunk {1} 1.output.js (my own chunk) 33 bytes {0} [rendered]
> my own chunk [0] ./example.js 3:0-6:18
> my own chunk [0] ./example.js 8:0-11:18
> my own chunk [0] ./example.js 13:0-15:18
[1] ./~/b.js 11 {0} {1} [built]
[2] ./~/b.js 11 bytes {1} {2} [built]
require.ensure item b [0] ./example.js 3:0-6:18
require.ensure item b [0] ./example.js 8:0-11:18
require.ensure item b [0] ./example.js 17:0-20:2
[2] ./~/d.js 11 {0} {1} [built]
cjs require d [0] ./example.js 10:9-21
cjs require d [0] ./example.js 19:9-21
[4] ./~/c.js 11 {0} [built]
[3] ./~/c.js 11 bytes {1} [built]
cjs require c [0] ./example.js 5:9-21
chunk {1} 1.output.js 22 {2} [rendered]
[4] ./~/d.js 11 bytes {1} {2} [built]
cjs require d [0] ./example.js 10:9-21
cjs require d [0] ./example.js 19:9-21
chunk {2} 2.output.js 22 bytes {0} [rendered]
> [0] ./example.js 17:0-20:2
[1] ./~/b.js 11 {0} {1} [built]
[2] ./~/b.js 11 bytes {1} {2} [built]
require.ensure item b [0] ./example.js 3:0-6:18
require.ensure item b [0] ./example.js 8:0-11:18
require.ensure item b [0] ./example.js 17:0-20:2
[2] ./~/d.js 11 {0} {1} [built]
[4] ./~/d.js 11 bytes {1} {2} [built]
cjs require d [0] ./example.js 10:9-21
cjs require d [0] ./example.js 19:9-21
chunk {2} output.js (main) 452 [rendered]
> main [0] ./example.js
[0] ./example.js 441 {2} [built]
[3] ./~/a.js 11 {2} [built]
cjs require a [0] ./example.js 1:8-20
```
## Minimized (uglify-js, no zip)
```
Hash: ff6ac31d572b48c26640
Version: webpack 1.5.0
Time: 119ms
Asset Size Chunks Chunk Names
0.output.js 63 0, 1 [emitted] my own chunk
1.output.js 47 1 [emitted]
output.js 827 2 [emitted] main
chunk {0} 0.output.js (my own chunk) 33 {2} [rendered]
Hash: 7fc113f6466bdbf67434
Version: webpack 1.9.10
Time: 229ms
Asset Size Chunks Chunk Names
0.output.js 72 bytes 0, 1 [emitted] my own chunk
1.output.js 53 bytes 1 [emitted]
output.js 834 bytes 2 [emitted] main
chunk {0} 0.output.js (my own chunk) 33 bytes {2} [rendered]
> my own chunk [0] ./example.js 3:0-6:18
> my own chunk [0] ./example.js 8:0-11:18
> my own chunk [0] ./example.js 13:0-15:18
[1] ./~/b.js 11 {0} {1} [built]
[1] ./~/b.js 11 bytes {0} {1} [built]
require.ensure item b [0] ./example.js 3:0-6:18
require.ensure item b [0] ./example.js 8:0-11:18
require.ensure item b [0] ./example.js 17:0-20:2
[2] ./~/d.js 11 {0} {1} [built]
[2] ./~/d.js 11 bytes {0} {1} [built]
cjs require d [0] ./example.js 10:9-21
cjs require d [0] ./example.js 19:9-21
[4] ./~/c.js 11 {0} [built]
[4] ./~/c.js 11 bytes {0} [built]
cjs require c [0] ./example.js 5:9-21
chunk {1} 1.output.js 22 {2} [rendered]
chunk {1} 1.output.js 22 bytes {2} [rendered]
> [0] ./example.js 17:0-20:2
[1] ./~/b.js 11 {0} {1} [built]
[1] ./~/b.js 11 bytes {0} {1} [built]
require.ensure item b [0] ./example.js 3:0-6:18
require.ensure item b [0] ./example.js 8:0-11:18
require.ensure item b [0] ./example.js 17:0-20:2
[2] ./~/d.js 11 {0} {1} [built]
[2] ./~/d.js 11 bytes {0} {1} [built]
cjs require d [0] ./example.js 10:9-21
cjs require d [0] ./example.js 19:9-21
chunk {2} output.js (main) 452 [rendered]
chunk {2} output.js (main) 452 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 441 {2} [built]
[3] ./~/a.js 11 {2} [built]
[0] ./example.js 441 bytes {2} [built]
[3] ./~/a.js 11 bytes {2} [built]
cjs require a [0] ./example.js 1:8-20
WARNING in output.js from UglifyJs
Dropping unused function argument require [./example.js:3,0]
Side effects in initialization of unused variable c [./example.js:5,0]
Dropping unused function argument require [./example.js:8,0]
Side effects in initialization of unused variable d [./example.js:10,0]
Dropping unused function argument require [./example.js:13,0]
Dropping unused function argument require [./example.js:17,0]
Side effects in initialization of unused variable d [./example.js:19,0]
Side effects in initialization of unused variable a [./example.js:1,0]
```

View File

@ -11,18 +11,18 @@
{{js/output.js}}
```
# js/0.output.js
``` javascript
{{js/0.output.js}}
```
# js/1.output.js
``` javascript
{{js/1.output.js}}
```
# js/2.output.js
``` javascript
{{js/2.output.js}}
```
# Info
## Uncompressed

View File

@ -28,41 +28,41 @@ module.exports = function() {
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -75,58 +75,25 @@ module.exports = function() {
/***/ function(module, exports, __webpack_require__) {
function getTemplate(templateName) {
return __webpack_require__(/*! ./templates */ 4)("./"+templateName);
return __webpack_require__(/*! ./templates */ 1)("./"+templateName);
}
console.log(getTemplate("a"));
console.log(getTemplate("b"));
/***/ },
/* 1 */
/*!************************!*\
!*** ./templates/a.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template A";
}
/***/ },
/* 2 */
/*!************************!*\
!*** ./templates/b.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template B";
}
/***/ },
/* 3 */
/*!************************!*\
!*** ./templates/c.js ***!
\************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template C";
}
/***/ },
/* 4 */
/*!****************************!*\
!*** ./templates ^\.\/.*$ ***!
\****************************/
/***/ function(module, exports, __webpack_require__) {
var map = {
"./a": 1,
"./a.js": 1,
"./b": 2,
"./b.js": 2,
"./c": 3,
"./c.js": 3
"./a": 2,
"./a.js": 2,
"./b": 3,
"./b.js": 3,
"./c": 4,
"./c.js": 4
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
@ -139,11 +106,44 @@ module.exports = function() {
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 4;
webpackContext.id = 1;
/***/ },
/* 2 */
/*!************************!*\
!*** ./templates/a.js ***!
\************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template A";
}
/***/ },
/* 3 */
/*!************************!*\
!*** ./templates/b.js ***!
\************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template B";
}
/***/ },
/* 4 */
/*!************************!*\
!*** ./templates/c.js ***!
\************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template C";
}
/***/ }
/******/ ])
/******/ ]);
```
# Info
@ -151,48 +151,48 @@ module.exports = function() {
## Uncompressed
```
Hash: 532ec4ba9a9dceec08e2
Version: webpack 1.5.0
Time: 53ms
Asset Size Chunks Chunk Names
output.js 3198 0 [emitted] main
chunk {0} output.js (main) 613 [rendered]
Hash: 41fd788e0ab4ea24848c
Version: webpack 1.9.10
Time: 77ms
Asset Size Chunks Chunk Names
output.js 3.05 kB 0 [emitted] main
chunk {0} output.js (main) 613 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 150 {0} [built]
[1] ./templates/a.js 82 {0} [optional] [built]
context element ./a.js [4] ./templates ^\.\/.*$
context element ./a [4] ./templates ^\.\/.*$
[2] ./templates/b.js 82 {0} [optional] [built]
context element ./b.js [4] ./templates ^\.\/.*$
context element ./b [4] ./templates ^\.\/.*$
[3] ./templates/c.js 82 {0} [optional] [built]
context element ./c.js [4] ./templates ^\.\/.*$
context element ./c [4] ./templates ^\.\/.*$
[4] ./templates ^\.\/.*$ 217 {0} [built]
[0] ./example.js 150 bytes {0} [built]
[1] ./templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ./templates [0] ./example.js 2:8-44
[2] ./templates/a.js 82 bytes {0} [optional] [built]
context element ./a.js [1] ./templates ^\.\/.*$
context element ./a [1] ./templates ^\.\/.*$
[3] ./templates/b.js 82 bytes {0} [optional] [built]
context element ./b.js [1] ./templates ^\.\/.*$
context element ./b [1] ./templates ^\.\/.*$
[4] ./templates/c.js 82 bytes {0} [optional] [built]
context element ./c.js [1] ./templates ^\.\/.*$
context element ./c [1] ./templates ^\.\/.*$
```
## Minimized (uglify-js, no zip)
```
Hash: 4e3b87900b36b810e8bc
Version: webpack 1.5.0
Time: 107ms
Asset Size Chunks Chunk Names
output.js 810 0 [emitted] main
chunk {0} output.js (main) 613 [rendered]
Hash: 532ec4ba9a9dceec08e2
Version: webpack 1.9.10
Time: 193ms
Asset Size Chunks Chunk Names
output.js 816 bytes 0 [emitted] main
chunk {0} output.js (main) 613 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 150 {0} [built]
[1] ./templates/a.js 82 {0} [optional] [built]
[0] ./example.js 150 bytes {0} [built]
[1] ./templates/a.js 82 bytes {0} [optional] [built]
context element ./a.js [4] ./templates ^\.\/.*$
context element ./a [4] ./templates ^\.\/.*$
[2] ./templates/b.js 82 {0} [optional] [built]
[2] ./templates/b.js 82 bytes {0} [optional] [built]
context element ./b.js [4] ./templates ^\.\/.*$
context element ./b [4] ./templates ^\.\/.*$
[3] ./templates/c.js 82 {0} [optional] [built]
[3] ./templates/c.js 82 bytes {0} [optional] [built]
context element ./c.js [4] ./templates ^\.\/.*$
context element ./c [4] ./templates ^\.\/.*$
[4] ./templates ^\.\/.*$ 217 {0} [built]
[4] ./templates ^\.\/.*$ 217 bytes {0} [built]
cjs require context ./templates [0] ./example.js 2:8-44
```

View File

@ -29,41 +29,41 @@ module.exports = Math.random();
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -94,12 +94,12 @@ module.exports = Math.random();
/*!**************!*\
!*** ./a.js ***!
\**************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = Math.random();
/***/ }
/******/ ])
/******/ ]);
```
# Info
@ -108,14 +108,14 @@ module.exports = Math.random();
```
Hash: 45aa578eb2865bbacfee
Version: webpack 1.5.0
Time: 37ms
Asset Size Chunks Chunk Names
output.js 2102 0 [emitted] main
chunk {0} output.js (main) 326 [rendered]
Version: webpack 1.9.10
Time: 65ms
Asset Size Chunks Chunk Names
output.js 1.99 kB 0 [emitted] main
chunk {0} output.js (main) 326 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 295 {0} [built]
[1] ./a.js 31 {0} [built]
[0] ./example.js 295 bytes {0} [built]
[1] ./a.js 31 bytes {0} [built]
cjs require ./a [0] ./example.js 1:8-22
cjs require ./a [0] ./example.js 10:9-23
require.resolve ./a.js [0] ./example.js 4:10-35
@ -124,15 +124,15 @@ chunk {0} output.js (main) 326 [rendered]
## Minimized (uglify-js, no zip)
```
Hash: 9b8f178b60158d934515
Version: webpack 1.5.0
Time: 92ms
Asset Size Chunks Chunk Names
output.js 348 0 [emitted] main
chunk {0} output.js (main) 326 [rendered]
Hash: 45aa578eb2865bbacfee
Version: webpack 1.9.10
Time: 169ms
Asset Size Chunks Chunk Names
output.js 350 bytes 0 [emitted] main
chunk {0} output.js (main) 326 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 295 {0} [built]
[1] ./a.js 31 {0} [built]
[0] ./example.js 295 bytes {0} [built]
[1] ./a.js 31 bytes {0} [built]
cjs require ./a [0] ./example.js 1:8-22
cjs require ./a [0] ./example.js 10:9-23
require.resolve ./a.js [0] ./example.js 4:10-35

View File

@ -59,7 +59,7 @@ module.exports = {
/******/ // "0" means "already loaded"
/******/ // Array means "loading", array contains callbacks
/******/ var installedChunks = {
/******/ 0:0
/******/ 3:0
/******/ };
/******/ // The require function
@ -105,7 +105,7 @@ module.exports = {
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"1":"vendor2","2":"pageC","3":"pageB","4":"pageA"}[chunkId]||chunkId) + ".js";
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"0":"pageA","1":"pageB","2":"pageC","4":"vendor2"}[chunkId]||chunkId) + ".js";
/******/ head.appendChild(script);
/******/ }
/******/ };
@ -138,7 +138,7 @@ module.exports = {
/*!********************!*\
!*** ./vendor1.js ***!
\********************/
/***/ function(module, exports, __webpack_require__) {
/***/ function(module, exports) {
module.exports = "Vendor1";
@ -149,7 +149,7 @@ module.exports = {
# js/vendor2.js
``` javascript
webpackJsonp([1],[
webpackJsonp([4],[
/* 0 */
/*!*********************!*\
!*** multi vendor2 ***!
@ -178,7 +178,7 @@ webpackJsonp([1],[
# js/pageA.js
``` javascript
webpackJsonp([4],[
webpackJsonp([0],[
/* 0 */
/*!******************!*\
!*** ./pageA.js ***!
@ -199,50 +199,50 @@ webpackJsonp([4],[
## Uncompressed
```
Hash: 1faf7c0010d184985c19
Version: webpack 1.8.11
Time: 77ms
Hash: 3e055899b35229db5633
Version: webpack 1.9.10
Time: 76ms
Asset Size Chunks Chunk Names
vendor1.js 4.08 kB 0 [emitted] vendor1
vendor2.js 468 bytes 1 [emitted] vendor2
pageC.js 193 bytes 2 [emitted] pageC
pageB.js 193 bytes 3 [emitted] pageB
pageA.js 281 bytes 4 [emitted] pageA
chunk {0} vendor1.js (vendor1) 55 bytes [rendered]
pageA.js 281 bytes 0 [emitted] pageA
pageB.js 172 bytes 1 [emitted] pageB
pageC.js 172 bytes 2 [emitted] pageC
vendor1.js 4.06 kB 3 [emitted] vendor1
vendor2.js 468 bytes 4 [emitted] vendor2
chunk {0} pageA.js (pageA) 73 bytes {4} [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 73 bytes {0} [built]
chunk {1} pageB.js (pageB) 25 bytes {4} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 25 bytes {1} [built]
chunk {2} pageC.js (pageC) 25 bytes {4} [rendered]
> pageC [0] ./pageC.js
[0] ./pageC.js 25 bytes {2} [built]
chunk {3} vendor1.js (vendor1) 55 bytes [rendered]
> vendor1 [0] multi vendor1
[0] multi vendor1 28 bytes {0} [built]
[1] ./vendor1.js 27 bytes {0} [built]
[0] multi vendor1 28 bytes {3} [built]
[1] ./vendor1.js 27 bytes {3} [built]
single entry ./vendor1 [0] multi vendor1
cjs require ./vendor1 [0] ./pageA.js 2:0-20
cjs require ./vendor1 [2] ./vendor2.js 2:0-20
chunk {1} vendor2.js (vendor2) 80 bytes {0} [rendered]
chunk {4} vendor2.js (vendor2) 80 bytes {3} [rendered]
> vendor2 [0] multi vendor2
[0] multi vendor2 28 bytes {1} [built]
[2] ./vendor2.js 52 bytes {1} [built]
[0] multi vendor2 28 bytes {4} [built]
[2] ./vendor2.js 52 bytes {4} [built]
single entry ./vendor2 [0] multi vendor2
cjs require ./vendor2 [0] ./pageA.js 3:0-20
chunk {2} pageC.js (pageC) 25 bytes {1} [rendered]
> pageC [0] ./pageC.js
[0] ./pageC.js 25 bytes {2} [built]
chunk {3} pageB.js (pageB) 25 bytes {1} [rendered]
> pageB [0] ./pageB.js
[0] ./pageB.js 25 bytes {3} [built]
chunk {4} pageA.js (pageA) 73 bytes {1} [rendered]
> pageA [0] ./pageA.js
[0] ./pageA.js 73 bytes {4} [built]
```
## Minimized (uglify-js, no zip)
```
Hash: 1faf7c0010d184985c19
Version: webpack 1.8.11
Time: 208ms
Version: webpack 1.9.10
Time: 232ms
Asset Size Chunks Chunk Names
vendor1.js 849 bytes 0 [emitted] vendor1
vendor1.js 847 bytes 0 [emitted] vendor1
vendor2.js 95 bytes 1 [emitted] vendor2
pageC.js 55 bytes 2 [emitted] pageC
pageB.js 55 bytes 3 [emitted] pageB
pageC.js 53 bytes 2 [emitted] pageC
pageB.js 53 bytes 3 [emitted] pageB
pageA.js 65 bytes 4 [emitted] pageA
chunk {0} vendor1.js (vendor1) 55 bytes [rendered]
> vendor1 [0] multi vendor1

View File

@ -27,41 +27,41 @@ onmessage = function(event) {
/******/ (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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = 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;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -92,7 +92,7 @@ onmessage = function(event) {
};
/***/ }
/******/ ])
/******/ ]);
```
# js/[hash].worker.js
@ -106,40 +106,40 @@ onmessage = function(event) {
/******/ while(chunkIds.length)
/******/ installedChunks[chunkIds.pop()] = 1;
/******/ };
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded chunks
/******/ // "1" means "already loaded"
/******/ var installedChunks = {
/******/ 1:1
/******/ 0:1
/******/ };
/******/
/******/ // 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] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId, callback) {
@ -149,16 +149,16 @@ onmessage = function(event) {
/******/ }
/******/ callback.call(null, __webpack_require__);
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "js/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
@ -172,67 +172,34 @@ onmessage = function(event) {
onmessage = function(event) {
var template = event.data;
__webpack_require__.e/* require */(0, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 4)("./" + event.data)]; (function(tmpl) {
__webpack_require__.e/* require */(1, function(__webpack_require__) { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! ../require.context/templates */ 1)("./" + event.data)]; (function(tmpl) {
postMessage(tmpl());
}.apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));});
}
/***/ }
/******/ ])
/******/ ]);
```
# js/0.[hash].worker.hs
# js/1.[hash].worker.hs
``` javascript
webpackChunk([0],[
webpackChunk([1],[
/* 0 */,
/* 1 */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template A";
}
/***/ },
/* 2 */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template B";
}
/***/ },
/* 3 */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/***/ function(module, exports, __webpack_require__) {
module.exports = function() {
return "This text was generated by template C";
}
/***/ },
/* 4 */
/*!*********************************************!*\
!*** ../require.context/templates ^\.\/.*$ ***!
\*********************************************/
/***/ function(module, exports, __webpack_require__) {
var map = {
"./a": 1,
"./a.js": 1,
"./b": 2,
"./b.js": 2,
"./c": 3,
"./c.js": 3
"./a": 2,
"./a.js": 2,
"./b": 3,
"./b.js": 3,
"./c": 4,
"./c.js": 4
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
@ -245,11 +212,44 @@ webpackChunk([0],[
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 4;
webpackContext.id = 1;
/***/ },
/* 2 */
/*!*****************************************!*\
!*** ../require.context/templates/a.js ***!
\*****************************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template A";
}
/***/ },
/* 3 */
/*!*****************************************!*\
!*** ../require.context/templates/b.js ***!
\*****************************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template B";
}
/***/ },
/* 4 */
/*!*****************************************!*\
!*** ../require.context/templates/c.js ***!
\*****************************************/
/***/ function(module, exports) {
module.exports = function() {
return "This text was generated by template C";
}
/***/ }
])
]);
```
# Info
@ -258,77 +258,77 @@ webpackChunk([0],[
```
Hash: 3c3f9999f18d1fd240ac
Version: webpack 1.5.0
Time: 66ms
Asset Size Chunks Chunk Names
0.hash.worker.js 1677 [emitted]
hash.worker.js 2815 [emitted]
output.js 2130 0 [emitted] main
chunk {0} output.js (main) 302 [rendered]
Version: webpack 1.9.10
Time: 234ms
Asset Size Chunks Chunk Names
hash.worker.js 2.71 kB [emitted]
1.hash.worker.js 1.61 kB [emitted]
output.js 2.04 kB 0 [emitted] main
chunk {0} output.js (main) 302 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 206 {0} [built]
[1] (webpack)/~/worker-loader!./worker.js 96 {0} [not cacheable] [built]
[0] ./example.js 206 bytes {0} [built]
[1] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [not cacheable] [built]
cjs require worker!./worker [0] ./example.js 1:13-39
Child worker:
Asset Size Chunks Chunk Names
0.hash.worker.js 1677 0 [emitted]
hash.worker.js 2815 1 [emitted] main
chunk {0} 0.hash.worker.js 463 {1} [rendered]
> [0] ./worker.js 3:1-5:3
[1] ../require.context/templates/a.js 82 {0} [optional] [built]
context element ./a.js [4] ../require.context/templates ^\.\/.*$
context element ./a [4] ../require.context/templates ^\.\/.*$
[2] ../require.context/templates/b.js 82 {0} [optional] [built]
context element ./b.js [4] ../require.context/templates ^\.\/.*$
context element ./b [4] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/c.js 82 {0} [optional] [built]
context element ./c.js [4] ../require.context/templates ^\.\/.*$
context element ./c [4] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates ^\.\/.*$ 217 {0} [built]
amd require context ../require.context/templates [0] ./worker.js 3:1-5:3
chunk {1} hash.worker.js (main) 168 [rendered]
Asset Size Chunks Chunk Names
hash.worker.js 2.71 kB 0 [emitted] main
1.hash.worker.js 1.61 kB 1 [emitted]
chunk {0} hash.worker.js (main) 168 bytes [rendered]
> main [0] ./worker.js
[0] ./worker.js 168 {1} [built]
[0] ./worker.js 168 bytes {0} [built]
chunk {1} 1.hash.worker.js 463 bytes {0} [rendered]
> [0] ./worker.js 3:1-5:3
[1] ../require.context/templates ^\.\/.*$ 217 bytes {1} [built]
amd require context ../require.context/templates [0] ./worker.js 3:1-5:3
[2] ../require.context/templates/a.js 82 bytes {1} [optional] [built]
context element ./a.js [1] ../require.context/templates ^\.\/.*$
context element ./a [1] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/b.js 82 bytes {1} [optional] [built]
context element ./b.js [1] ../require.context/templates ^\.\/.*$
context element ./b [1] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates/c.js 82 bytes {1} [optional] [built]
context element ./c.js [1] ../require.context/templates ^\.\/.*$
context element ./c [1] ../require.context/templates ^\.\/.*$
```
## Minimized (uglify-js, no zip)
```
Hash: 97014f6c5bd9622142f7
Version: webpack 1.5.0
Time: 225ms
Asset Size Chunks Chunk Names
0.hash.worker.js 535 [emitted]
hash.worker.js 516 [emitted]
output.js 371 0 [emitted] main
chunk {0} output.js (main) 302 [rendered]
Hash: 3c3f9999f18d1fd240ac
Version: webpack 1.9.10
Time: 328ms
Asset Size Chunks Chunk Names
0.hash.worker.js 541 bytes [emitted]
hash.worker.js 516 bytes [emitted]
output.js 371 bytes 0 [emitted] main
chunk {0} output.js (main) 302 bytes [rendered]
> main [0] ./example.js
[0] ./example.js 206 {0} [built]
[1] (webpack)/~/worker-loader!./worker.js 96 {0} [not cacheable] [built]
[0] ./example.js 206 bytes {0} [built]
[1] (webpack)/~/worker-loader!./worker.js 96 bytes {0} [not cacheable] [built]
cjs require worker!./worker [0] ./example.js 1:13-39
WARNING in output.js from UglifyJs
Side effects in initialization of unused variable templateB [./example.js:5,0]
Child worker:
Asset Size Chunks Chunk Names
0.hash.worker.js 535 0 [emitted]
hash.worker.js 516 1 [emitted] main
chunk {0} 0.hash.worker.js 463 {1} [rendered]
Asset Size Chunks Chunk Names
0.hash.worker.js 541 bytes 0 [emitted]
hash.worker.js 516 bytes 1 [emitted] main
chunk {0} 0.hash.worker.js 463 bytes {1} [rendered]
> [0] ./worker.js 3:1-5:3
[1] ../require.context/templates/a.js 82 {0} [optional] [built]
[1] ../require.context/templates/a.js 82 bytes {0} [optional] [built]
context element ./a.js [4] ../require.context/templates ^\.\/.*$
context element ./a [4] ../require.context/templates ^\.\/.*$
[2] ../require.context/templates/b.js 82 {0} [optional] [built]
[2] ../require.context/templates/b.js 82 bytes {0} [optional] [built]
context element ./b.js [4] ../require.context/templates ^\.\/.*$
context element ./b [4] ../require.context/templates ^\.\/.*$
[3] ../require.context/templates/c.js 82 {0} [optional] [built]
[3] ../require.context/templates/c.js 82 bytes {0} [optional] [built]
context element ./c.js [4] ../require.context/templates ^\.\/.*$
context element ./c [4] ../require.context/templates ^\.\/.*$
[4] ../require.context/templates ^\.\/.*$ 217 {0} [built]
[4] ../require.context/templates ^\.\/.*$ 217 bytes {0} [built]
amd require context ../require.context/templates [0] ./worker.js 3:1-5:3
chunk {1} hash.worker.js (main) 168 [rendered]
chunk {1} hash.worker.js (main) 168 bytes [rendered]
> main [0] ./worker.js
[0] ./worker.js 168 {1} [built]
[0] ./worker.js 168 bytes {1} [built]
WARNING in hash.worker.js from UglifyJs
Side effects in initialization of unused variable template [./worker.js:2,0]

View File

@ -23,10 +23,10 @@
{{js/hash.worker.js}}
```
# js/0.[hash].worker.hs
# js/1.[hash].worker.hs
``` javascript
{{js/0.hash.worker.js}}
{{js/1.hash.worker.js}}
```
# Info

View File

@ -180,10 +180,8 @@ Chunk.prototype.size = function(options) {
var CHUNK_OVERHEAD = options.chunkOverhead || 10000;
var ENTRY_CHUNK_MULTIPLICATOR = options.entryChunkMultiplicator || 10;
var modulesSize = this.modules.map(function(m) {
return m.size();
}).reduce(function(a, b) {
return a + b;
var modulesSize = this.modules.reduce(function(a, b) {
return a + b.size();
}, 0);
return modulesSize * (this.initial ? ENTRY_CHUNK_MULTIPLICATOR : 1) + CHUNK_OVERHEAD;
};

View File

@ -476,6 +476,11 @@ Compilation.prototype.rebuildModule = function(module, thisCallback) {
Compilation.prototype.seal = function seal(callback) {
this.applyPlugins("seal");
this.preparedChunks.sort(function(a, b) {
if(a.name < b.name) return -1;
if(a.name > b.name) return 1;
return 0;
});
this.preparedChunks.forEach(function(preparedChunk) {
var module = preparedChunk.module;
var chunk = this.addChunk(preparedChunk.name, module);

View File

@ -13,6 +13,8 @@ function Module() {
this.debugId = debugId++;
this.lastId = -1;
this.id = null;
this.index = null;
this.index2 = null;
this.chunks = [];
this.warnings = [];
this.dependenciesWarnings = [];
@ -27,6 +29,8 @@ Module.prototype.disconnect = function() {
this.reasons.length = 0;
this.lastId = this.id;
this.id = null;
this.index = null;
this.index2 = null;
this.chunks.length = 0;
DependenciesBlock.prototype.disconnect.call(this);
};

View File

@ -29,10 +29,10 @@
"coffee-loader": "~0.7.1",
"component-webpack-plugin": "~0.2.0",
"coveralls": "^2.11.2",
"css-loader": "~0.12.0",
"css-loader": "~0.14.0",
"eslint": "^0.21.0",
"express": "~3.4.8",
"extract-text-webpack-plugin": "~0.7.0",
"extract-text-webpack-plugin": "~0.8.0",
"file-loader": "~0.8.0",
"i18n-webpack-plugin": "~0.2.0",
"istanbul": "^0.3.13",