Skip to content

Crawl option ignored #14

Open
Open
@ScottSmith95

Description

@ScottSmith95

When using customizr with the gulp-modernizr wrapper, with the following config, the crawl option is ignored. The tests customizr crawls for are then added to the output file, which is not intended.

Gulp configuration

gulp.task('modernizr', function() {
    gulp.src('scripts/*.js').pipe(modernizr({
        cache:   true,
        dest:    'scripts/src/modernizr.js',
        options: ['mq', 'html5printshiv'],
        tests:   ['csstransforms', 'flexbox', 'inlinesvg', 'touchevents'],
        crawl:   false
    }))
    .pipe(gulp.dest('scripts/src/'));
});

Terminal output:

>> Explicitly including these tests:
>> csstransforms, flexbox, inlinesvg, touchevents

Looking for Modernizr references

>> 3 matches in /Users/Scott/Documents/web/Decode/Decode/scripts/decode.js
>> contains, supports, target

No config or test changes detected
>> The build step has been bypassed. Use `--force` to override.
>> Your current file can be found in scripts/src/modernizr.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions