1、git clone https://github.com/valcosmos/farm-starter.git
2、pnpm i
3、pnpm dev (In this case, the SVG displays correctly.)
4、pnpm build
5、pnpm preview (But in this case, it fails to display, and the page is blank.)
I'm using the vite-plugin-svg-icons plugin to process local SVG icons. However, I've noticed that while the icons display correctly during development (dev mode), they fail to show up after building the project (production build).
Steps to reproduce
1、git clone https://github.com/valcosmos/farm-starter.git 2、pnpm i 3、pnpm dev (In this case, the SVG displays correctly.) 4、pnpm build 5、pnpm preview (But in this case, it fails to display, and the page is blank.)
Reproduce link
https://github.com/valcosmos/farm-starter.git
What is actually happening?
I'm using the
vite-plugin-svg-icons
plugin to process local SVG icons. However, I've noticed that while the icons display correctly during development (dev mode), they fail to show up after building the project (production build).when dev:![image](https://github.com/farm-fe/farm/assets/53572196/7b3f3a9b-78b4-49e1-af79-ccd137c0bd31)
when after build:![image](https://github.com/farm-fe/farm/assets/53572196/22dee9c2-1175-47d1-bb8e-bf7572b81d1c)
System Info