Hot Module Reload when migrating to vite

Continuing the discussion from Desperately missing Vue 3 support:

So, the migration to vite is sort of suggested, am I correct, @susnux?

Is there alreday a plan/way to enable HMR on vite? I found some solution using webpack but the vite did not work so far. Mainly, the problem is the fact that vite provides its dedicated server that is to be used and any backend queries must be either redirected or proxied.

Do you know of a setup working there (ideally with the docker compose setup by Julius)?

Thanks
Christian

Hi,

feat: Add support for `vite serve` by mejo- · Pull Request #6765 · nextcloud/text · GitHub is what you are looking for?

We migrated mail to vite and then because of some issues, migrated back to webpack. Especially the build times for larger apps are a pain and we encountered issues with the async loading for vue components.

1 Like