biwin
11/18/2015 - 3:43 PM

gulpfile to reload and compile sass files

gulpfile to reload and compile sass files

var gulp = require('gulp');
var sass = require('gulp-sass');
var livereload = require('gulp-livereload');

gulp.task('sass', function () {
    gulp.src('scss/*.scss')
        .pipe(sass({outputStyle: 'compressed'}))
        .pipe(gulp.dest('css'))
        .pipe(livereload());
    });


gulp.task('default', function() {
    livereload.listen();
    gulp.watch(['*.html']).on('change', livereload.changed);
    gulp.watch('scss/*.scss', ['sass']);
    });