jonkemp / gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.
MIT License
705 stars 93 forks source link

Fix globbing issue in searchPath option #180

Closed yongzhenlow closed 8 years ago

yongzhenlow commented 8 years ago

Add a length > 1 check before adding curly braces to searchPath

This commit fixes an issue where passing an array contain a single path to the searchPath option causes the error "File not found with singular glob", due to the curly braces added.

jonkemp commented 8 years ago

Please add a failing test that passes with the fix. Thanks.

jonkemp commented 8 years ago

Why was it closed?