Skip to content

How can I set up icons locally? #3965

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

Closed
Artanisky opened this issue Apr 23, 2025 · 6 comments
Closed

How can I set up icons locally? #3965

Artanisky opened this issue Apr 23, 2025 · 6 comments
Labels
question Further information is requested v3 #1289

Comments

@Artanisky
Copy link

Description

I use vitejs and @nuxt/ui 3.0.2 and I need to use the icons locally.

I did not find any configuration options in the documentation.

I tried installing @iconify-json/lucide packages, etc. and configuring the config from @nuxt/icons. There is no result yet. Do you have any ideas?

@Artanisky Artanisky added question Further information is requested v3 #1289 labels Apr 23, 2025
Copy link
Member

You can checkout this page: https://ui.nuxt.com/getting-started/icons/vue, @nuxt/ui with Vue uses @iconify/vue under the hood so you have access to any icon without doing anything.

@Artanisky
Copy link
Author

Artanisky commented Apr 23, 2025

You can checkout this page: https://ui.nuxt.com/getting-started/icons/vue, @nuxt/ui with Vue uses @iconify/vue under the hood so you have access to any icon without doing anything.

Without configuration(If it is possible), it uses a cdn, but I want to use the local icons that are installed in packages and then after the build were inside the code.

The documentation only states the option to change the theme.

Copy link
Member

This is what @nuxt/icon is all about, have you considered switching to Nuxt?

@Artanisky
Copy link
Author

Artanisky commented Apr 23, 2025

This is what @nuxt/icon is all about, have you considered switching to Nuxt?

On the contrary, I switched from Nuxt to pure Vite. There is no way back

Copy link
Member

Then I'm afraid I can't do anything for you, @nuxt/icon bundles and serves your icons from the server but you need a server to do that.

@Artanisky
Copy link
Author

Thx, Perhaps in future versions of @nuxt/ui, you could add the ability to configure this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants