-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hi
Thanks for sharing this but browser sync did not seem to work on my Mac Os 10.9.5 and chrome. It loaded the first time but would not refresh:
gulpfile.js I needed to correct the paths to the files of the sass and site files.
gulp.task('default', ['pre-process', 'minify-css', 'bs-reload', 'browser-sync'], function(){
gulp.start('pre-process', 'csslint');
gulp.watch(['includes/', 'layouts/', 'posts/', 'resources/', 'sass/', '.html', '__config.yml'], ['jekyll-build']);
gulp.watch('sass/.scss', ['pre-process', 'minify-css']);
gulp.watch('css/nkd.css', ['bs-reload', 'minify-css']);
gulp.watch('*.html', ['bs-reload'])
});
Changed to
gulp.task('default', ['pre-process', 'minify-css', 'bs-reload', 'browser-sync'], function(){
gulp.start('pre-process', 'csslint');
gulp.watch(['includes/', 'layouts/', 'posts/', 'resources/', 'sass/', '_.html', '__config.yml'], ['jekyll-build']);
gulp.watch('sass/.scss', ['pre-process', 'minify-css']);
gulp.watch('_site/css/nkd.css', ['bs-reload', 'minify-css']);
gulp.watch('_site/*.html', ['bs-reload'])
});