Skip to content

Commit b45ff2e

Browse files
committed
exclude font changes from hardreload, because they will be requested async when the styles change
1 parent 2ddf2da commit b45ff2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/watch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ module.exports = function(gulp, tasks, browserSync, config) {
2424
gulp.watch(config.bowerjson, ['bowerScripts', 'bowerStyles', 'bowerFonts']);
2525
// watch any change in dist folder; reload immediately in case of detected change
2626
// don't watch CSS assets, these will be handled in sass by CSS injections by browserSync.stream
27-
gulp.watch([config.bases.dist + '**', '!' + config.dist.css + '*'], browserSync.reload);
27+
gulp.watch([config.bases.dist + '**', '!' + config.dist.css + '*', '!' + config.dist.fonts + '*'], browserSync.reload);
2828
});
2929
};

0 commit comments

Comments
 (0)