Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Latest commit

 

History

History
24 lines (19 loc) · 379 Bytes

with-gulp.md

File metadata and controls

24 lines (19 loc) · 379 Bytes

With Gulp

Start by installing the Gulp plugin as a dev dependency.

npm i -D gulp-purgecss
const gulp = require('gulp')
const purgecss = require('gulp-purgecss')

gulp.task('purgecss', () => {
  return gulp
    .src('src/**/*.css')
    .pipe(
      purgecss({
        content: ['src/**/*.html']
      })
    )
    .pipe(gulp.dest('build/'))
})