arnoson / kirby-vite

Use Kirby CMS together with Vite
MIT License
81 stars 7 forks source link

Add public file function to return asset paths #25

Closed FlorianBoe closed 1 year ago

FlorianBoe commented 1 year ago

I have added a public file function as discussed in #24.

I'm not the most savvy PHP developer, feel free to take a look and see if this is a good fit for you.

arnoson commented 1 year ago

Thanks! For dev mode you can't use the manfiest entry, it is just the name of the entry itself (my-file.woff2 -> localhost:1234/my-file.woff2). I don't have rights to push on your fork, therefore I just added the file method and its corresponding tests and documentation to the main branch. Thanks for the feature request! Will start to preload fonts now too (: