Revert "refactor: styleResources watch patterns"

This reverts commit a764fb691d.
This commit is contained in:
Clark Du 2018-02-26 21:30:15 +08:00
parent a764fb691d
commit 9ab4ebde78

View File

@ -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)