Skip to content

<defs> are not extracted from SVGs into inline SVG before <symbols> #1

@dsine-de

Description

@dsine-de

Hi,

this line doesn't seem to do anything:

const $defs = $svg.find('defs');

It seems to look for <defs> tags in $svg.children() to extract them and put them before any other <symbol> tags of the sprite SVG - but this is a newly created empty cheerio variable (new SVG element), right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions