How to use gulp-modernizr - 3 common examples

To help you get started, we’ve selected a few gulp-modernizr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dougludlow / plugin-sass / gulpfile.babel.js View on Github external
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'));
});
github erudit / eruditorg / tools / static / gulpfile.babel.js View on Github external
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'));
});
github trendyminds / pura / gulp / tasks / modernizr.js View on Github external
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));
});

gulp-modernizr

Gulp wrapper for custom Modernizr builds

MIT
Latest version published 11 days ago

Package Health Score

76 / 100
Full package analysis

Popular gulp-modernizr functions