Skip to content

Commit 55d748f

Browse files
committed
Readme and license
1 parent b8be5e9 commit 55d748f

5 files changed

Lines changed: 46 additions & 7 deletions

File tree

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(The MIT License)
2+
3+
Copyright (c) 2012 Tobias Koppers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
'Software'), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -572,22 +572,27 @@ else `stats` as json:
572572
"main": "output.js",
573573
"namedChunk": "1.output.js"
574574
}
575+
dependencies: [ "filename", ... ],
576+
loaders: [ "filename of loader", ... ]
577+
contexts: [ "dirname of context", ... ]
575578
warnings: [ "Some warning" ],
576579
errors: [ "Some error" ],
577580
fileModules: {
578581
"output.js": [
579-
{ id: 0, size: 123, filename: "/home/.../main.js", reasons: [
580-
{ type: "main" }
581-
],
582+
{
583+
id: 0,
584+
size: 123,
585+
filename: "/home/.../main.js",
586+
reasons: [ { type: "main" } ],
582587
dependencies: [ "filename", ... ],
583588
loaders: [ "filename of loader", ... ]
584589
},
585590
{ id: 1, size: 234, filename: "...", reasons: [
586591
{ type: "require", // or "context", "async require", "async context"
587-
count: 2,
588-
filename: "/home/.../main.js",
589-
// or dirname: "..." // for type = "context" or "async context"
590-
}
592+
count: 2,
593+
filename: "/home/.../main.js",
594+
// additionally: dirname: "..." // for type = "context" or "async context"
595+
}
591596
]},
592597
...
593598
],

lib/Workers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
MIT License http://www.opensource.org/licenses/mit-license.php
3+
Author Tobias Koppers @sokra
4+
*/
15
var child_process = require("child_process");
26

37
function Workers(moduleToFork, count) {

lib/buildModule.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
MIT License http://www.opensource.org/licenses/mit-license.php
3+
Author Tobias Koppers @sokra
4+
*/
15
var fs = require("fs");
26
var parse = require("./parse");
37
var execLoaders = require("enhanced-require/lib/execLoaders");

lib/worker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
MIT License http://www.opensource.org/licenses/mit-license.php
3+
Author Tobias Koppers @sokra
4+
*/
15
var buildModule = require("./buildModule");
26
var resolve = require("enhanced-resolve");
37

0 commit comments

Comments
 (0)