jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
555 stars 59 forks source link

Customize the destination folder in dist #79

Closed antoniogiroz closed 1 year ago

antoniogiroz commented 1 year ago

Hi!

It would be great if we could define the destination folder for the generated componentes. Currently they are generated in the root of the dist folder.

Example:

svgLoader({
  dest: './dist/icons'
})

Thanks!

gkatsanos commented 1 year ago

@antoniogiroz I think you're looking for vite-specific configuration and not something that's related to this specific plugin. Maybe https://vitejs.dev/config/build-options.html#build-outdir ?