Erik
Erik
KPCKevin Powell - Community
Created by Erik on 1/12/2024 in #front-end
VITE + REACT folder structure "public" vs "src/assets"?
As the title says I am looking for the best practice where should I store my static content eg.: png, font, svg, favico. Public (Vite assets folder): you can reference the static files by this folder location without the need of "public" to be spcified. src/assets (react assets folder): It is bundled together with other react files (a bit smaller size), also you can refer it as a module.
9 replies