function styles() {
    return gulp.src(PATHS.styles.entry)
        .pipe(sourcemaps.init('.'))
        .pipe(sass({
            importer: importer
        }))
        .on('error', function(e) {
            console.error('\n' + e.toString() + '\n')
            this.emit('end')
        })
        .pipe(postcss([
            autoprefixer({
                browsers: ['last 2 versions']
            }),
            cssnano()
        ]))
        .pipe(rename({
            basename: 'app'
        }))
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest(PATHS.styles.dest))
}
/**
 * Compile the SCSS with gulp-sass, autoprefixer and cssnano
 *
 * Plumber let's the task continue on error without crashing
 * Cssnano and autoprefixer are postcss plugins which minify and prefix your css
 */
Compile the SCSS with gulp-sass, autoprefixer and cssnano
Plumber let's the task continue on error without crashing
Cssnano and autoprefixer are postcss plugins which minify and prefix your css
Compile the SCSS with gulp - sass autoprefixer and cssnano Plumber let ' s the task continue on error without crashing Cssnano and autoprefixer are postcss plugins which minify and prefix your css
function styles() {
    return gulp.src(PATHS.styles.entry)
        .pipe(sourcemaps.init('.'))
        .pipe(sass({
            importer: importer
        }))
        .on('error', function(e) {
            console.error('\n' + e.toString() + '\n')
            this.emit('end')
        })
        .pipe(postcss([
            autoprefixer({
                browsers: ['last 2 versions']
            }),
            cssnano()
        ]))
        .pipe(rename({
            basename: 'app'
        }))
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest(PATHS.styles.dest))
}
function styles ( ) { return gulp . src ( PATHS . styles . entry ) . pipe ( sourcemaps . init ( '.' ) ) . pipe ( sass ( { importer : importer } ) ) . on ( 'error' , function ( e ) { console . error ( '\n' + e . toString ( ) + '\n' ) this . emit ( 'end' ) } ) . pipe ( postcss ( [ autoprefixer ( { browsers : [ 'last 2 versions' ] } ) , cssnano ( ) ] ) ) . pipe ( rename ( { basename : 'app' } ) ) . pipe ( sourcemaps . write ( '.' ) ) . pipe ( gulp . dest ( PATHS . styles . dest ) ) }
Compile the SCSS with gulp-sass, autoprefixer and cssnano
 Plumber let's the task continue on error without crashing
 Cssnano and autoprefixer are postcss plugins which minify and prefix your css
Compile the SCSS with gulp - sass autoprefixer and cssnano Plumber let ' s the task continue on error without crashing Cssnano and autoprefixer are postcss plugins which minify and prefix your css