Skip to content

Commit 8e6f7ac

Browse files
committed
Merge pull request #1506 from rtfd/gulpfile-watch
Fix gulpfile watch logic issue
2 parents 13a8162 + 1026525 commit 8e6f7ac

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

gulpfile.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,10 @@ gulp.task('dev', function (done) {
138138

139139
es
140140
.merge(Object.keys(sources).map(function (application) {
141-
var files = sources[application].map(function (n) {
142-
return path.join(
143-
pkg_config.name, application, 'static-src', '**', n
144-
);
145-
});
141+
var files = [
142+
path.join(pkg_config.name, application, 'static-src', '**', '*.js'),
143+
path.join(pkg_config.name, application, 'static-src', '**', '*.css')
144+
];
146145
return watch(files, {verbose: true, name: 'dev'}, function () {
147146
build_app_sources(application, false)
148147
.pipe(es.wait(function (err, body) {

0 commit comments

Comments
 (0)