Skip to content

Commit

Permalink
Fix error on empty array config
Browse files Browse the repository at this point in the history
  • Loading branch information
sharang-d committed Apr 23, 2016
1 parent 4c2ae56 commit 20ab1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/webpack.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function processOptions(options) {
return;
}

var firstOptions = Array.isArray(options) ? options[0] : options;
var firstOptions = Array.isArray(options) ? (options[0] || {}) : options;

if(typeof options.stats === "boolean" || typeof options.stats === "string") {
var statsPresetToOptions = require("../lib/Stats.js").presetToOptions;
Expand Down

0 comments on commit 20ab1bf

Please sign in to comment.