Skip to content

Commit

Permalink
Fixing live reload on views
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbribeiro committed Oct 5, 2016
1 parent 50fa49a commit fc2fbe7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,15 @@ export function paniniRefresh(done){
done()
}

export function paniniRebuild(done) {
gulp.series(
export function viewsBuildAndStream() {
return views()
.pipe(browserSync.stream())
}

export function paniniRebuild() {
return gulp.series(
paniniRefresh,
views,
browserSync.reload,
done
viewsBuildAndStream
);
};

Expand All @@ -177,7 +180,7 @@ export function watch(done) {
gulp.watch(paths.fonts.src, fonts);
gulp.watch(paths.styles.src, styles);
gulp.watch(paths.scripts.src, scripts);
gulp.watch(paths.views.src, views);
gulp.watch(paths.views.src, paniniRebuild());

$.util.log($.util.colors.bgGreen('Watching for changes...'));
done()
Expand All @@ -202,4 +205,4 @@ export { serve };
/*
* Export a default task
*/
export default build;
export default build;

0 comments on commit fc2fbe7

Please sign in to comment.