Last active
January 31, 2019 17:15
-
-
Save nmec/b16abe555988061e3786 to your computer and use it in GitHub Desktop.
A very simple gulp task for compiling a custom modernizr build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var fs = require('fs'); | |
var gulp = require( 'gulp' ); | |
var modernizr = require('modernizr'); | |
var config = require('./modernizr-config'); // path to JSON config | |
gulp.task( 'modernizr', function (done) { | |
modernizr.build(config, function(code) { | |
fs.writeFile('./dist/modernizr-build.js', code, done); | |
}); | |
}); |
๐
Good
๐
use var config = require('modernizr/lib/config-all.json'); // path to JSON config
for all options in dev.
Thanks for this!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks ! It's working like a charm !