web/app/themes/sasquatch/build/sass.js
// In production, the CSS is compressed
In production, the CSS is compressed
In production the CSS is compressed
function sass() {
    return gulp.src('assets/scss/app.scss')
        .pipe($.sourcemaps.init())
        .pipe($.plumber())
        .pipe($.sass({
        includePaths: PATHS.sass,
        outputStyle: 'compressed'
        }).on('error', $.sass.logError))
        .on('error', () => {
            if (PRODUCTION){ throw new Error('Errors in SASS build.') }
        })
        .pipe($.postcss([autoprefixer()])) 
        .pipe($.if(!PRODUCTION, $.sourcemaps.write()))
        .pipe(gulp.dest(PATHS.dist + '/css'))
        .pipe(browser.reload({ stream: true }));
}
function sass ( ) { return gulp . src ( 'assets/scss/app.scss' ) . pipe ( $ . sourcemaps . init ( ) ) . pipe ( $ . plumber ( ) ) . pipe ( $ . sass ( { includePaths : PATHS . sass , outputStyle : 'compressed' } ) . on ( 'error' , $ . sass . logError ) ) . on ( 'error' , ( ) => { if ( PRODUCTION ) { throw new Error ( 'Errors in SASS build.' ) } } ) . pipe ( $ . postcss ( [ autoprefixer ( ) ] ) ) . pipe ( $ . if ( ! PRODUCTION , $ . sourcemaps . write ( ) ) ) . pipe ( gulp . dest ( PATHS . dist + '/css' ) ) . pipe ( browser . reload ( { stream : true } ) ) ; }
In production, the CSS is compressed
In production the CSS is compressed
// uses ".browserslistrc"