From 9ab4ebde78050f8b5118647ee3c8d1565e8f5b5c Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 26 Feb 2018 21:30:15 +0800 Subject: [PATCH] Revert "refactor: styleResources watch patterns" This reverts commit a764fb691d2fe89652cd05e769c676e178637d46. --- lib/builder/builder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/builder/builder.js b/lib/builder/builder.js index 3e37d24470..d61dce35e2 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -669,8 +669,8 @@ module.exports = class Builder { // Watch for custom provided files let customPatterns = _.concat( - this.options.build.watch || [], - _.values(_.omit(this.options.build.styleResources, 'options')) + this.options.build.watch, + ..._.values(_.omit(this.options.build.styleResources, ['options'])) ) customPatterns = _.map(_.uniq(customPatterns), p => upath.normalizeSafe(p)