We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 326c817 + 141ebf0 commit d39b4c4Copy full SHA for d39b4c4
lib/webpack.js
@@ -28,7 +28,10 @@ function webpack(options, callback) {
28
}
29
if(callback) {
30
if(typeof callback !== "function") throw new Error("Invalid argument: callback");
31
- if(options.watch === true) {
+ if(options.watch === true || (Array.isArray(options) &&
32
+ options.some(function(o) {
33
+ return o.watch;
34
+ }))) {
35
var watchOptions = (!Array.isArray(options) ? options : options[0]).watchOptions || {};
36
// TODO remove this in next major version
37
var watchDelay = (!Array.isArray(options) ? options : options[0]).watchDelay;
0 commit comments