-
Hi folks, I'm trying to switch to Vite but running into an issue only with the dev server. I have the following in my CSS: src: url('/fonts/BreveDisplay-Regular.woff2') format('woff2'), I use Valet to serve my sites. Whenever I run Hopefully someone knows. I can't seem to figure it out. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The vite dev-server runs a bit different then Valet with nginx and DNSMasq. Where valet serves from your
The built-command will automatically copy the assets (and reference to it) to your built-directory. |
Beta Was this translation helpful? Give feedback.
The vite dev-server runs a bit different then Valet with nginx and DNSMasq.
Where valet serves from your
/public/
diretory; the dev-server runs from the project root. So referencing the full path starting from the root dir of your project should work.The built-command will automatically copy the assets (and reference to it) to your built-directory.