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.
options.build.styleResources
1 parent 20d16e8 commit ce6f8b9Copy full SHA for ce6f8b9
lib/builder/builder.js
@@ -668,11 +668,15 @@ module.exports = class Builder {
668
.on('unlink', refreshFiles)
669
670
// Watch for custom provided files
671
- const watchFiles = _.map(_.uniq(this.options.build.watch), p =>
+ let customPatterns = _.concat(
672
+ this.options.build.watch,
673
+ ..._.values(_.omit(this.options.build.styleResources, ['options']))
674
+ )
675
+ customPatterns = _.map(_.uniq(customPatterns), p =>
676
upath.normalizeSafe(p)
677
)
678
this.customFilesWatcher = chokidar
- .watch(watchFiles, options)
679
+ .watch(customPatterns, options)
680
.on('change', refreshFiles)
681
}
682
0 commit comments