From 5b1a226885a9c87974351872d88f622a7069f468 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 19 Oct 2018 15:00:56 +1100 Subject: [PATCH] Update null check for `modifiedAssets` array. Co-Authored-By: emizzle --- lib/modules/pipeline/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/pipeline/index.js b/lib/modules/pipeline/index.js index f5c42f17..2ff2592c 100644 --- a/lib/modules/pipeline/index.js +++ b/lib/modules/pipeline/index.js @@ -86,7 +86,7 @@ class Pipeline { function shouldRunWebpack(next){ // assuming we got here because an asset was changed, let's check our webpack config // to see if the changed asset requires webpack to run - if(modifiedAssets){ + if(modifiedAssets || modifiedAssets.length) { const configReader = new WebpackConfigReader({webpackConfigName: self.webpackConfigName}); return configReader.readConfig((err, config) => { if(err) return next(err);