https://github.com/thasmo/gulp.modernizr
Gulp plugin to generate a custom Modernizr build.
https://github.com/thasmo/gulp.modernizr
feature-detection gulp-plugin modernizr
Last synced: 2 months ago
JSON representation
Gulp plugin to generate a custom Modernizr build.
- Host: GitHub
- URL: https://github.com/thasmo/gulp.modernizr
- Owner: thasmo
- Created: 2016-02-13T19:03:25.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2016-10-12T20:14:18.000Z (over 8 years ago)
- Last Synced: 2025-02-27T04:17:28.014Z (3 months ago)
- Topics: feature-detection, gulp-plugin, modernizr
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Gulp Modernizr
> [Gulp][gulp] plugin to generate a custom [Modernizr][modernizr] build.## Usage
```js
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][modernizr]'s build [options][options].## License
[MIT License][license][gulp]: http://gulpjs.com/
[modernizr]: https://modernizr.com/
[options]: https://github.com/Modernizr/Modernizr/blob/master/lib/config-all.json
[license]: http://thasmo.mit-license.org/