Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser Sync not seem to work -- fix #20

Open
tristanbailey opened this issue Jan 7, 2015 · 0 comments
Open

Browser Sync not seem to work -- fix #20

tristanbailey opened this issue Jan 7, 2015 · 0 comments

Comments

@tristanbailey
Copy link

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'])
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant