fixed crashing when error in entry file
This commit is contained in:
parent
8e517c5c21
commit
bcd7924ec6
|
@ -33,7 +33,7 @@ MinChunkSizePlugin.prototype.apply = function(compiler) {
|
|||
return a.size - b.size;
|
||||
});
|
||||
|
||||
if(argumentedChunks[0].size < minChunkSize && !argumentedChunks[0].entry) {
|
||||
if(argumentedChunks.length > 0 && argumentedChunks[0].size < minChunkSize && !argumentedChunks[0].entry) {
|
||||
for(var i = 1; i < argumentedChunks.length; i++) {
|
||||
if(argumentedChunks[i].size + argumentedChunks[0].size >= minChunkSize)
|
||||
break;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "webpack",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2",
|
||||
"author": "Tobias Koppers @sokra",
|
||||
"description": "Packs CommonJs/AMD/Labeled 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.",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in New Issue