Clean unnecessary CSS with PurifyCSS
Package | gulp-purifycss |
Description | Clean unnecessary CSS |
Node Version | >= 0.10 |
var purify = require('gulp-purifycss');
gulp.task('css', function() {
return gulp.src('./public/app/example.css')
.pipe(purify(['./public/app/**/*.js', './public/**/*.html']))
.pipe(gulp.dest('./dist/'));
});