Skip to content

Instantly share code, notes, and snippets.

@KasperAndersson
Last active March 8, 2017 22:46
Show Gist options
  • Save KasperAndersson/87a9770ed36890d88644066a28421e49 to your computer and use it in GitHub Desktop.
Save KasperAndersson/87a9770ed36890d88644066a28421e49 to your computer and use it in GitHub Desktop.
gulp modernizr
var gulp = require('gulp');
var modernizr = require('gulp-modernizr');
gulp.task('modernizr', function() {
return gulp.src(['js/**/*.js', 'scss/**/*.scss'])
.pipe(modernizr({
'cache': true,
'options': [
'setClasses'
]
}))
.pipe(gulp.dest('build'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment