webpack
Version:
Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.
460 lines (459 loc) • 13.6 kB
JSON
{
"version": "1.0.0",
"errors": [],
"warnings": [],
"hash": "eaf30f934a3d5f841fba",
"time": 125,
"assets": [
{
"name": "pageB.bundle.js",
"size": 215,
"chunks": [
0
],
"chunkNames": [
"pageB"
],
"emitted": true
},
{
"name": "1.chunk.js",
"size": 172,
"chunks": [
1
],
"chunkNames": [],
"emitted": true
},
{
"name": "pageA.bundle.js",
"size": 322,
"chunks": [
2
],
"chunkNames": [
"pageA"
],
"emitted": true
},
{
"name": "commons.js",
"size": 3453,
"chunks": [
3
],
"chunkNames": [
"commons.js"
],
"emitted": true
}
],
"chunks": [
{
"id": 0,
"rendered": true,
"initial": true,
"entry": false,
"size": 152,
"names": [
"pageB"
],
"files": [
"pageB.bundle.js"
],
"parents": [
3
],
"modules": [
{
"id": 0,
"identifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"name": "./pageB.js",
"size": 152,
"cacheable": true,
"built": true,
"prefetched": false,
"chunks": [
0
],
"profile": {
"factory": 14,
"building": 45,
"dependencies": 0
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [],
"source": "var common = require(\"./common\");\r\nrequire.ensure([\"./shared\"], function(require) {\r\n\tvar shared = require(\"./shared\");\r\n\tshared(\"This is page B\");\r\n});"
}
],
"origins": [
{
"moduleId": 0,
"module": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"moduleName": "./pageB.js",
"loc": "",
"name": "pageB",
"reasons": []
}
]
},
{
"id": 1,
"rendered": true,
"initial": false,
"entry": false,
"size": 91,
"names": [],
"files": [
"1.chunk.js"
],
"parents": [
0,
2
],
"modules": [
{
"id": 2,
"identifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\shared.js",
"name": "./shared.js",
"size": 91,
"cacheable": true,
"built": true,
"prefetched": false,
"chunks": [
1
],
"issuer": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"profile": {
"factory": 1,
"building": 31,
"dependencies": 0
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"module": "./pageA.js",
"moduleName": "./pageA.js",
"type": "amd require",
"userRequest": "./shared",
"loc": "2:0-4:2"
},
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"module": "./pageB.js",
"moduleName": "./pageB.js",
"type": "require.ensure item",
"userRequest": "./shared",
"loc": "2:0-5:2"
},
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"module": "./pageB.js",
"moduleName": "./pageB.js",
"type": "cjs require",
"userRequest": "./shared",
"loc": "3:14-33"
}
],
"source": "var common = require(\"./common\");\r\nmodule.exports = function(msg) {\r\n\tconsole.log(msg);\r\n};"
}
],
"loc": "2:0-4:2",
"origins": [
{
"moduleId": 0,
"module": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"moduleName": "./pageB.js",
"loc": "2:0-5:2",
"name": null,
"reasons": []
},
{
"moduleId": 0,
"module": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"moduleName": "./pageA.js",
"loc": "2:0-4:2",
"name": null,
"reasons": [
"duplicate"
]
}
]
},
{
"id": 2,
"rendered": true,
"initial": true,
"entry": false,
"size": 108,
"names": [
"pageA"
],
"files": [
"pageA.bundle.js"
],
"parents": [
3
],
"modules": [
{
"id": 0,
"identifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"name": "./pageA.js",
"size": 108,
"cacheable": true,
"built": true,
"prefetched": false,
"chunks": [
2
],
"profile": {
"factory": 19,
"building": 20
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [],
"source": "var common = require(\"./common\");\r\nrequire([\"./shared\"], function(shared) {\r\n\tshared(\"This is page A\");\r\n});"
}
],
"origins": [
{
"moduleId": 0,
"module": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"moduleName": "./pageA.js",
"loc": "",
"name": "pageA",
"reasons": []
}
]
},
{
"id": 3,
"rendered": true,
"initial": true,
"entry": true,
"size": 26,
"names": [
"commons.js"
],
"files": [
"commons.js"
],
"parents": [],
"modules": [
{
"id": 1,
"identifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\common.js",
"name": "./common.js",
"size": 26,
"cacheable": true,
"built": true,
"prefetched": false,
"chunks": [
3
],
"issuer": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"profile": {
"factory": 1,
"building": 29
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"module": "./pageA.js",
"moduleName": "./pageA.js",
"type": "cjs require",
"userRequest": "./common",
"loc": "1:13-32"
},
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"module": "./pageB.js",
"moduleName": "./pageB.js",
"type": "cjs require",
"userRequest": "./common",
"loc": "1:13-32"
},
{
"moduleId": 2,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\shared.js",
"module": "./shared.js",
"moduleName": "./shared.js",
"type": "cjs require",
"userRequest": "./common",
"loc": "1:13-32"
}
],
"source": "module.exports = \"Common\";"
}
],
"origins": []
}
],
"modules": [
{
"id": 0,
"identifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"name": "./pageA.js",
"size": 108,
"cacheable": true,
"built": true,
"prefetched": false,
"chunks": [
2
],
"profile": {
"factory": 19,
"building": 20
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [],
"source": "var common = require(\"./common\");\r\nrequire([\"./shared\"], function(shared) {\r\n\tshared(\"This is page A\");\r\n});"
},
{
"id": 0,
"identifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"name": "./pageB.js",
"size": 152,
"cacheable": true,
"built": true,
"prefetched": false,
"chunks": [
0
],
"profile": {
"factory": 14,
"building": 45,
"dependencies": 0
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [],
"source": "var common = require(\"./common\");\r\nrequire.ensure([\"./shared\"], function(require) {\r\n\tvar shared = require(\"./shared\");\r\n\tshared(\"This is page B\");\r\n});"
},
{
"id": 1,
"identifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\common.js",
"name": "./common.js",
"size": 26,
"cacheable": true,
"built": true,
"prefetched": false,
"chunks": [
3
],
"issuer": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"profile": {
"factory": 1,
"building": 29
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"module": "./pageA.js",
"moduleName": "./pageA.js",
"type": "cjs require",
"userRequest": "./common",
"loc": "1:13-32"
},
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"module": "./pageB.js",
"moduleName": "./pageB.js",
"type": "cjs require",
"userRequest": "./common",
"loc": "1:13-32"
},
{
"moduleId": 2,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\shared.js",
"module": "./shared.js",
"moduleName": "./shared.js",
"type": "cjs require",
"userRequest": "./common",
"loc": "1:13-32"
}
],
"source": "module.exports = \"Common\";"
},
{
"id": 2,
"identifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\shared.js",
"name": "./shared.js",
"size": 91,
"cacheable": true,
"built": true,
"prefetched": false,
"chunks": [
1
],
"issuer": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"profile": {
"factory": 1,
"building": 31,
"dependencies": 0
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageA.js",
"module": "./pageA.js",
"moduleName": "./pageA.js",
"type": "amd require",
"userRequest": "./shared",
"loc": "2:0-4:2"
},
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"module": "./pageB.js",
"moduleName": "./pageB.js",
"type": "require.ensure item",
"userRequest": "./shared",
"loc": "2:0-5:2"
},
{
"moduleId": 0,
"moduleIdentifier": "C:\\Users\\kopperts\\Repos\\node_modules\\webpack\\examples\\multiple-entry-points\\pageB.js",
"module": "./pageB.js",
"moduleName": "./pageB.js",
"type": "cjs require",
"userRequest": "./shared",
"loc": "3:14-33"
}
],
"source": "var common = require(\"./common\");\r\nmodule.exports = function(msg) {\r\n\tconsole.log(msg);\r\n};"
}
],
"children": []
}