Question; when generating where do the icons get stored?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 96
- Avg merge
- 8h 12m
- Merged PRs (30d)
- 2
Description
I am just wondering, when you are using this with the following nuxt config. Where does the icons get stored when you generate? (Or how does it work as i don't fully understand).
Reason I ask is that i have used this library for a project that runs offline; I have installed the icons locally to the project. And sometimes the icons do not appear on my offline project.
I have recently added the icon: entry to the nuxt config to see if this fixes it. And to be honest I don't know if the outcome of this has done anything yes or no, because it is hard to replicate the bug of the icons not appearing.
Any ideas?
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
devtools: { enabled: true },
vite: {
css: {
preprocessorOptions: {
scss: {
api: "modern",
},
},
},
},
nitro: {
publicAssets: [
{
dir: "public",
maxAge: 60 * 60 * 24 * 365, // 1 year
},
],
},
icon: {
clientBundle: {
scan: true,
includeCustomCollections: true,
icons: [
"heroicons:user-solid",
"heroicons:document-arrow-down",
"heroicons:arrow-up-circle-16-solid",
"heroicons:arrow-down-circle-16-solid",
"heroicons:flag-20-solid",
"heroicons:lock-open-solid",
"heroicons:heart-solid",
"heroicons:chat-bubble-oval-left-16-solid",
"heroicons:minus-circle-16-solid",
"heroicons:speaker-wave-solid",
"heroicons:phone-16-solid",
"material-symbols:mail-rounded",
"material-symbols:database",
"material-symbols:list-alt",
"material-symbols:headphones-rounded",
"fa6-solid:users",
"fa6-solid:battery-full",
"fa6-solid:battery-three-quarters",
"fa6-solid:battery-half",
"fa6-solid:battery-quarter",
"fa6-solid:wifi",
"fa6-solid:users",
"fa6-solid:check",
],
},
},
modules: [
"@nuxtjs/ionic",
"@nuxtjs/tailwindcss",
"@vueuse/nuxt",
"@nuxt/icon",
"nuxt-particles",
"@vite-pwa/nuxt",
],
ssr: false,
});
Entries to package.json
"@iconify-json/fa6-solid": "^1.2.1",
"@iconify-json/heroicons": "^1.2.1",
"@iconify-json/material-symbols": "^1.2.4",
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides a Nuxt configuration and package.json entries but names no repository files or tests. Start by tracing the icon clientBundle configuration and offline asset generation behavior, then document where generated icons are stored and what configuration is required for offline use. The open question and lack of a proposed change make the scope unresolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vite
- Domain
- documentation, web-dev
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100