sveltekit_auto-import Svelte Themes

Sveltekit_auto Import

  • Initialize new sveltekit project by running npm init svelte@next sveltekit-base.
  • Install neccesary packages with npm install --save-dev unplugin-auto-import unplugin-icons @iconify-json/majesticons
  • Add neccesary code in svelte.config.js:
  • Add icon on routes/foo.svelte <- gives warning (also during build time), but works
  • Add icon on routes/index.svelte <-- gives error

Top categories

Loading Svelte Themes