shakyShane / jekyll-gulp-sass-browser-sync

A starter project including full setup for Jekyll, GulpJS, SASS & BrowserSync
727 stars 169 forks source link

Purpose of duplicate css dest? #55

Open bas72 opened 7 years ago

bas72 commented 7 years ago

Could someone please explain what the purpose of the duplicate destination for the css task is?

  .pipe(gulp.dest('_site/css'))
  .pipe(browserSync.reload({stream:true}))
  .pipe(gulp.dest('css'));

What benefit is there of copying files to ./css for 'future jekyll builds' as well as directly to the _site/css directory?

HaoZeke commented 7 years ago

Live reloading. Means your sass changes don't trigger a new jekyll build.

Has a HUGE speed benefit.