Skip to content
Discussion options

You must be logged in to vote

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.

src: url('/pulic/fonts/BreveDisplay-Regular.woff2') format('woff2'),

The built-command will automatically copy the assets (and reference to it) to your built-directory.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@robdekort
Comment options

@eric-hansen
Comment options

@robdekort
Comment options

Answer selected by robdekort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants