-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for kirby serve w/ HMR plugin #18
Conversation
This is the greatest contribution to a project of mine. Thank you so much, digging into this feature. Stunning work. Regarding the docsSince the README got pretty verbose by now, I will migrate to VitePress soon. We can then add a dedicated section to the Edit: Once I've set it up, we can add the documentation for Regarding reload for PHP changesWe could introduce a CLI option like I haven't yet tested the feature thoroughly. |
Status update: ✅ Verified that .env, alias and PostCSS features work as intended in 👀 Assets are a different beast however:
So yeah, the asset story is a bit unclear. I can think of a couple ways to fix the behavior in Aside from the whole assets endeavor, I'm currently investigating some possible issues with server closing and server response times, which seem to be affected by the existence of a |
Submitted the fix so that |
Most of the Kirby Panel plugins don't actually include custom assets, as far as I know. As relevant as a bloated bundle is, I think it's neglectable if you can't make it working. 🙂
I'm completely fine tracking that in a separate issue!
You're even spotting issues in Vue 2 itself. Great, man. 👏 |
Alright, so I take it that vuejs/vue#12732 is non-blocking - we can move forward with this PR, assets in dev break and if the Vue PR is merged we simply need to update
Found the issue with So, everything should be working now I think! As for docs, I'd suggest adding the new command and its options to the README for now, switching to VitePress sounds like material for another PR. Then the only open question would be how (and how thoroughly) to test this. Apart from that, HMR support should be ready and we just need getkirby/kirby#4541 to move forward! :) |
It is non-blocking. Sounds good. Another approach, would be to use Adding another fix for the Vue compiler would be fine by me. Otherwise, we just wait. Maybe it's not worth the time patching it now. What do you think?
Good catch!
Seems like it. Again, amazing work!
👍 I don't have the resources to migrate to VitePress at the moment and don't want to rush it. A section in the README should do the job just as fine.
I'm unsure how to debug as well. In an older version of kirbyup I used |
Already tried that, but it doesn't work. :( |
Dang, you're right, I had to inline |
One more optional task: Adding your name to the license file and README, since your contribution will be an impactful one. Feel welcome to do so! |
makes it clearer that module entries are an internal, dev-only feature
We can add automated tests later. 🙂 |
fix #17
depends on getkirby/kirby#4541
To do:
serve
mode.env
) work inserve
modekirby.config.js#alias
work inserve
modeserve
modecli-start.ts
vite-plugin-live-reload