Skip to content

Include icons.svg inline  #304

@ghost

Description

I see that all the icons are added to the following file: "_nuxt/assets/sprite/gen/icons.svg".

Is there a way we can directly add the contents of the file to the body and not access it via a URL?

I am trying to load the icon in the below manner and was wondering if this was possible:

h('use', {
    attrs: {
        'xlink:href': `#${iconID}`,
    },
})

Also, thank you for all your hard work.

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