gulp-inject-svg
gulp-inject-svg copied to clipboard
fixing attr detection
cheerio's attr function returns a empty string if the attr exists and undefined if it does not. The If statement for this wasn't working so I added typeof to determine if its a string.
if (typeof el.attr('data-skip-inject-svg') === 'string') {
@viktorlarsson could you please review this?