gulpfile.js
function sassTranspiler(path) {
    return function () {
        return gulp.src(path)
            .pipe(sass({outputStyle: 'compressed'}))
            .pipe(autoprefixer({
                browsers: ['last 2 versions']
            }))
            .pipe(gulp.dest('dist'));
    }
}
function sassTranspiler(path) {
    return function () {
        return gulp.src(path)
            .pipe(sass({outputStyle: 'compressed'}))
            .pipe(autoprefixer({
                browsers: ['last 2 versions']
            }))
            .pipe(gulp.dest('dist'));
    }
}
function sassTranspiler ( path ) { return function ( ) { return gulp . src ( path ) . pipe ( sass ( { outputStyle : 'compressed' } ) ) . pipe ( autoprefixer ( { browsers : [ 'last 2 versions' ] } ) ) . pipe ( gulp . dest ( 'dist' ) ) ; } }
Compiles the sass files to css.
@param {Array} path array of file paths
Compiles the sass files to css .