Closed tobimori closed 1 year ago
Works great. I needed to add a substr()
as it included a slash in the beginning which resulted in a double slash from Kirby - now if you have a solution for the dev client, that's where it gets interesting 👍
Should work fine now with the latest release
It is possible. But right now you need to use the
vite()
helper in theready
callback has theVite
class requires a kirby instance to work properly. In addition to that kirby only allows relative asset paths here and skips URLs. So right now you need to use a little workaround to make it work.This example does work but only once the assets are actually build. So no hot reloading for now:
You also have to specify the panel styles in your vite config:
That's how you can use it right now.
Good news :)
I actually have a solution to get everything working with hot reloading as well. Still just as a concept. But I might get a release out for this later today. Just need to tidy things up so everything is working as expected.
You would then be able to use it like this in your config: