Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('modernizr', () => {
const glob = [
'!src/config.js',
'!src/modernizr.js',
'!src/jspm_packages/**',
'src/**/*.js',
];
return gulp.src(glob)
.pipe(modernizr())
.pipe(uglify())
.pipe(gulp.dest('src'));
});
gulp.task('build-modernizr', function(){
return gulp.src([js_dir + '**/*.js', sass_dir + '**/*.scss'])
.pipe(modernizr({
cache: true,
devFiles: false,
options : [
"setClasses",
"html5shiv",
"prefixed",
"prefixedCSS",
"prefixedCSSValue"
]
}))
.pipe(PROD_ENV ? uglify() : gutil.noop())
.pipe(gulp.dest(build_dir + '/js'));
});
gulp.task('modernizr', function () {
return gulp.src([paths.app.stylesAll, paths.app.scriptsAll])
.pipe(modernizr({
'options': [
'setClasses',
'addTest',
'html5printshiv',
'testProp',
'fnBind'
]
}))
.pipe(gulp.dest(paths.app.tmpJSDir));
});