atlowChemi / vite-svg-2-webfont

A vite plugin which generates a webfont out of svg icons
https://www.npmjs.com/package/vite-svg-2-webfont
MIT License
24 stars 8 forks source link

`dest` not being used? #7

Open wilr opened 12 months ago

wilr commented 12 months ago

I noticed assets folder is hardcoded within index.ts#L86, I would have thought that this needed to honor the dest option? At this moment there doesn't seem to be a way

const emitted = processedOptions.types.map<[T, string]>(type => [
                    type,
                    `/${this.getFileName(this.emitFile({ type: 'asset', fileName: `${processedOptions.dest}${processedOptions.fontName}-${guid()}.${type}`, source: generatedFonts?.[type] }))}`,
                ]);
atlowChemi commented 12 months ago

Hi @wilr, it seems you are correct 👍🏽

@kakigakki has opened a PR to handle this (#4)