Skip to content

Instantly share code, notes, and snippets.

@mrmrs
Created March 9, 2015 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrmrs/af1f2d5df27fd415c849 to your computer and use it in GitHub Desktop.
Save mrmrs/af1f2d5df27fd415c849 to your computer and use it in GitHub Desktop.
gulp.task('uncss', function() {
return gulp.src('css/tachyons.css')
.pipe(uncss({
html: ['index.html'],
ignore: [':hover', ':focus', ':link', ':active', ':visited']
}))
.pipe(minifyCSS())
.pipe(rename({ extname: 'stripped.min.css' }))
.pipe(gulp.dest('./css/'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment