You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
>> 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
The text was updated successfully, but these errors were encountered:
I was having the same issue and it was driving me nuts. I finally figured out what was going on. The issue is really in the gulp-modernizr package. In the index.js file it explicitly sets crawl to false on line 28 saying that gulp is providing the files.
That led me to play with the gulp.src('files here'). And sure enough, whatever file you have in the src is going to be crawled. It's like setting crawl: false and then setting files.src[] to the files that you have in gulp.src. And as the customizr docs say, adding files.src will look at those files and override the crawl option.
I hope I explained that well enough. If not, let me know and I'll try to clarify.
isn't that a little contradicting?
Setting the crawl: false should ensure that you do don't crawl anything fx. if you want to disable it momentarily. But maybe that is just my logic.
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
Terminal output:
The text was updated successfully, but these errors were encountered: