Skip to content

Instantly share code, notes, and snippets.

@lazybios
Created September 12, 2015 07:50
Show Gist options
  • Save lazybios/1c0ca71396a87cfea066 to your computer and use it in GitHub Desktop.
Save lazybios/1c0ca71396a87cfea066 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
gulp.task('sass', function(){
gulp.src('scss/share.scss')
.pipe(sass())
.pipe(gulp.dest('./css'));
});
gulp.task('browser-sync', ['sass'], function(){
browserSync({
server: {
baseDir: 'app'
},
})
});
gulp.task('watch', ['browser-sync'], function(){
gulp.watch('scss/*.scss', ['sass']);
gulp.watch('app/*.html', browserSync.reload );
});
gulp.task('default', ['watch'])
@lazybios
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment