Skip to content

Instantly share code, notes, and snippets.

@gustavoquinalha
Last active April 27, 2017 17:07
Show Gist options
  • Save gustavoquinalha/36194f251feb720a1928353fb69c908f to your computer and use it in GitHub Desktop.
Save gustavoquinalha/36194f251feb720a1928353fb69c908f to your computer and use it in GitHub Desktop.
gulp.task('css', function(){
gulp.src('css/*.css')
.pipe(uncss({
html: ['*.html'],
js: ['*.js']
}))
.pipe(cleanCSS({debug: true}, function(details) {
console.log(details.name + ': ' + details.stats.originalSize);
console.log(details.name + ': ' + details.stats.minifiedSize);
}))
.pipe(concat('master.min.css'))
.pipe(gulp.dest('css'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment