Skip to content

Instantly share code, notes, and snippets.

@gustavoquinalha
Created April 27, 2017 14:00
Show Gist options
  • Save gustavoquinalha/bba0c0c3b6b951249a71b1194d0bb3af to your computer and use it in GitHub Desktop.
Save gustavoquinalha/bba0c0c3b6b951249a71b1194d0bb3af to your computer and use it in GitHub Desktop.
gulp.task('un-css', function () {
return gulp.src('css/all.css')
.pipe(uncss({
html: ['*.html'],
js: ['*.js']
}))
.pipe(rename('final-clean.css'))
.pipe(gulp.dest('css/final'))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment