Note: This plugin uses version 3 of Modernizr. Make sure to check the Github repo for the correct feature names (example:
Modernizr.touch was renamed to
gulp-modernizr as a development dependency:
npm install --save-dev gulp-modernizr
Then, add it to your
var modernizr = ;gulp;
You can optionally pass a fileName to name the Modernizr file (defaults to 'modernizr.js')
You can pass settings as an object. See the customizr repository for valid settings.
Per the Gulp guidelines, the option to uglify the build goes against guidelines #1 and #3. Thus, this setting has been removed from this plugin. You may use
gulp-uglify to achieve this functionality in Gulp:
Copyright (c) 2013 Richard Herrera Licensed under the MIT license.