Skip to content

Commit

Permalink
fix(gen): delay nodemon on start and restart changes
Browse files Browse the repository at this point in the history
Closes #4.
  • Loading branch information
balthazar committed Feb 8, 2015
1 parent 2ab083b commit 37aef08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ gulp.task('serve', ['watch'], function () {
if (!openOpts.already) {
openOpts.already = true;
gulp.src('client/index.html')
.pipe($.wait(500))
.pipe($.open('', openOpts));
} else {
setTimeout(function () {
$.livereload.changed('/');
}, 1000);
}
})
.on('restart', function () {
gulp.src('client/index.html')
.pipe($.wait(250))
.pipe($.livereload());
});
});

Expand Down

0 comments on commit 37aef08

Please sign in to comment.