vite-stdf-icon.txt 696 B

12345678910111213
  1. export default defineConfig({
  2. plugins: [
  3. svelte(),
  4. tailwindcss(),
  5. // 一般来说,一个应用的的 svg 不多时都放在一个文件夹下,合并为一个 symbol 即可。此处演示了不同文件夹下的图标如何合并为不同的 symbol。
  6. // Generally speaking, when the svg of an application is not much, it is placed in a folder and merged into one symbol. This example shows how the icons in different folders are merged into different symbols.
  7. svgSprite([
  8. { inFile: 'src/lib/svgs/Heroicons', outFile: 'public/symbols' },
  9. { inFile: 'src/lib/svgs/IconPark', outFile: 'public/symbols' },
  10. { inFile: 'src/lib/svgs/Remix', outFile: 'public/symbols' }
  11. ])
  12. ]
  13. });