mrmrs / nkd

Template for jekyll project with postcss and browser-sync
http://mrmrs.io/nkd
229 stars 26 forks source link

Browser Sync not seem to work -- fix #20

Open tristanbailey opened 9 years ago

tristanbailey commented 9 years ago

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