Update null check for `modifiedAssets` array.

Co-Authored-By: emizzle <ericmastro@status.im>
This commit is contained in:
Jonathan Rainville 2018-10-19 15:00:56 +11:00 committed by Pascal Precht
parent 7c9d90090a
commit 5b1a226885
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class Pipeline {
function shouldRunWebpack(next){ function shouldRunWebpack(next){
// assuming we got here because an asset was changed, let's check our webpack config // 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 // to see if the changed asset requires webpack to run
if(modifiedAssets){ if(modifiedAssets || modifiedAssets.length) {
const configReader = new WebpackConfigReader({webpackConfigName: self.webpackConfigName}); const configReader = new WebpackConfigReader({webpackConfigName: self.webpackConfigName});
return configReader.readConfig((err, config) => { return configReader.readConfig((err, config) => {
if(err) return next(err); if(err) return next(err);