function css() {
  return src(paths.css.src)
    .pipe(sass()
      .on('error', sass.logError))
    .pipe(purify([paths.js.dist, paths.html.src]))
    .pipe(minifyCSS({
      keepSpecialComments: 0
    }))
    .pipe(rename({ extname: '.min.css' }))
    .pipe(dest(paths.css.dist))
    .pipe(browserSync.stream())
}
// compile sass to css, clean + minify
compile sass to css, clean + minify
compile sass to css clean + minify
function css() {
  return src(paths.css.src)
    .pipe(sass()
      .on('error', sass.logError))
    .pipe(purify([paths.js.dist, paths.html.src]))
    .pipe(minifyCSS({
      keepSpecialComments: 0
    }))
    .pipe(rename({ extname: '.min.css' }))
    .pipe(dest(paths.css.dist))
    .pipe(browserSync.stream())
}
function css ( ) { return src ( paths . css . src ) . pipe ( sass ( ) . on ( 'error' , sass . logError ) ) . pipe ( purify ( [ paths . js . dist , paths . html . src ] ) ) . pipe ( minifyCSS ( { keepSpecialComments : 0 } ) ) . pipe ( rename ( { extname : '.min.css' } ) ) . pipe ( dest ( paths . css . dist ) ) . pipe ( browserSync . stream ( ) ) }
compile sass to css, clean + minify
compile sass to css clean + minify