lmartins
4/5/2015 - 10:32 AM

Gulpfile for basic Sass processing

Gulpfile for basic Sass processing

var
	gulp         = require('gulp'),
	sass         = require('gulp-sass'),
	autoprefixer = require('gulp-autoprefixer');


var config = {

	dest: "./build",
	src: "./src",

	sass: {
		src: [
			"src/sass/**/*.scss",
		],
		build: "/build/css/",
		settings: {
			outputStyle: 'compressed',
		}
	}

}

gulp.task('sass', function () {
	gulp.src( config.sass.src )
	.pipe( sass( config.sass.settings ) )
	.pipe( gulp.dest( config.sass.build ) )
	.pipe( browserSync.reload({stream:true}) );
});



gulp.task('default', ['browserSync'], function(callback) {

	gulp.watch( config.sass.src,   ['sass']);

});