Commit dcc1120f0915d860d9429b4a987f8007f39bead8
1 parent
8616dd98
Exists in
master
and in
27 other branches
Fix styles watch from gulp
Showing
1 changed file
with
7 additions
and
4 deletions
Show diff stats
gulp/watch.js
... | ... | @@ -14,10 +14,13 @@ gulp.task('watch', ['inject'], function () { |
14 | 14 | |
15 | 15 | gulp.watch([path.join(conf.paths.src, '/*.html'), 'bower.json'], ['inject-reload']); |
16 | 16 | |
17 | - gulp.watch([ | |
18 | - path.join(conf.paths.src, '/app/**/*.css'), | |
19 | - path.join(conf.paths.src, '/app/**/*.scss') | |
20 | - ], function(event) { | |
17 | + var stylePaths = []; | |
18 | + conf.paths.allSources.forEach(function(src) { | |
19 | + stylePaths.push(path.join(src, '/app/**/*.css')); | |
20 | + stylePaths.push(path.join(src, '/app/**/*.scss')); | |
21 | + }); | |
22 | + | |
23 | + gulp.watch(stylePaths, function(event) { | |
21 | 24 | if(isOnlyChange(event)) { |
22 | 25 | gulp.start('styles-reload'); |
23 | 26 | } else { | ... | ... |