poppa / sveltekit-svg

SvelteKit plugin that makes it possible to import SVG files as Svelte components, inline SVG code or urls
MIT License
235 stars 23 forks source link

Incorrect configuration in documentation example #6

Closed james-camilleri closed 3 years ago

james-camilleri commented 3 years ago

As of the most recent versions of SvelteKit, any VIte plugins must be passed to a vite object in the Svelte config, e.g.

kit: {
  ...
  vite: {
    plugins: [svg()]
  }
}

This is not currently reflected on the plugin documentation - you may want to update it.

Thanks for the super-useful plugin 😃

poppa commented 3 years ago

Thanks for the feedback 😊. I'm on vacation, hence the late response, but an update will come soon.