function sass() {
  return gulp.src(PATHS.sassMain)
    .pipe($.sourcemaps.init())
    .pipe($.sass({
      includePaths: PATHS.sass
    })
      .on('error', $.sass.logError))
    .pipe($.cssimport({
      includePaths: 'src/assets/css/*.css'
    }))
    .pipe($.autoprefixer({
      browsers: COMPATIBILITY
    }))
    // Comment in the pipe below to run UnCSS in production
    //.pipe($.if(PRODUCTION, $.uncss(UNCSS_OPTIONS)))
    .pipe($.if(PRODUCTION, $.cssnano()))
    .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
In production the CSS is compressed
function sass() {
  return gulp.src(PATHS.sassMain)
    .pipe($.sourcemaps.init())
    .pipe($.sass({
      includePaths: PATHS.sass
    })
      .on('error', $.sass.logError))
    .pipe($.cssimport({
      includePaths: 'src/assets/css/*.css'
    }))
    .pipe($.autoprefixer({
      browsers: COMPATIBILITY
    }))
    .pipe($.if(PRODUCTION, $.cssnano()))
    .pipe($.if(!PRODUCTION, $.sourcemaps.write()))
    .pipe(gulp.dest(PATHS.dist + '/css'))
    .pipe(browser.reload({ stream: true }));
}
function sass ( ) { return gulp . src ( PATHS . sassMain ) . pipe ( $ . sourcemaps . init ( ) ) . pipe ( $ . sass ( { includePaths : PATHS . sass } ) . on ( 'error' , $ . sass . logError ) ) . pipe ( $ . cssimport ( { includePaths : 'src/assets/css/*.css' } ) ) . pipe ( $ . autoprefixer ( { browsers : COMPATIBILITY } ) ) . pipe ( $ . if ( PRODUCTION , $ . cssnano ( ) ) ) . 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
// Comment in the pipe below to run UnCSS in production //.pipe($.if(PRODUCTION, $.uncss(UNCSS_OPTIONS)))