node package manager

@thasmo/gulp-modernizr

Gulp Modernizr

Gulp plugin to generate a custom Modernizr build.

Usage

var gulp = require('gulp');
var modernizr = require('@thasmo/gulp-modernizr');
var options = {
  'classPrefix': 'has-',
  'options': [
    'setClasses'
  ],
  'feature-detects': []
};
 
gulp.task('scripts', function() {
  return gulp.src('*.js')
    .pipe(modernizr(options))
    .pipe(gulp.dest('.'))
});

Options

See Modernizr's build options.

License

MIT License