Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include icons.svg inline #304

Open
ghost opened this issue Dec 5, 2023 · 0 comments
Open

Include icons.svg inline #304

ghost opened this issue Dec 5, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants