-
Hi, My team and I are working on some web apps that can work only when served by a web server. We are trying to migrate to Rsbuild (from Webpack) and we are struggling to have a build watch + HMR working when building them in a local environment. Our environmentHere is how they work on a local dev environment:
Here is an app example: https://github.com/cozy/cozy-web-data-proxy (don't mind the readme, it is not up-to-date yet) What we triedDue to this configuration, it seems not to be possible to use the So instead we use When doing so everything works like a charm, but there are 2 cons:
We found that we can speed up the rebuild step by doing Our questionSo here is our question: Would it be possible to have the fastRefresh/HMR feature working with our configuration? We have seen the createDevServer options but this seems not to be what we are looking for as it seems to be for creating a custom dev server but not for interacting with an existing "content" server? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can set the https://rsbuild.dev/config/dev/write-to-disk#writing-to-disk |
Beta Was this translation helpful? Give feedback.
You can set the
dev.writeToDisk
option to true to enable writing the build output to disk.https://rsbuild.dev/config/dev/write-to-disk#writing-to-disk