4 ms·
How is the integration with things like a dev server and tools present in create-react-app like react-fast-refresh? Also, in case of working on an Electron pro
by baxuz 5y ago
How is the integration with things like a dev server and tools present in create-react-app like react-fast-refresh?
Also, in case of working on an Electron project: How well does it handle main/render/preload compile targets and handling of native modules and linking?
Electron-forge is, for instance, the recommended toolchain for building Electron apps and the Webpack stuff is a particular pain in the ass.
- Aeolun 5y ago> How is the integration with things like a dev server and tools present in create-react-app like react-fast-refresh? It’s not. It doesn’t do hot reloading, and it’s one of the features the author rejected I think.
- hashkb 5y agoYou can build very fast reloading yourself, easily. If I'm smart with persisting state on the client, I find I don't really miss "hot" reloading.
- brainbag 5y agoYou can use vite for that, which is an enhanced wrapper for esbuild. I use it on all of my projects except the ones I'm forced to use webpack on for legacy reasons.
- hashkb 5y agoOr easily write your own dev server. Once you use the API instead of the CLI, if you have any experience with Express or Connect it's trivial.
- magerleagues 5y agoThis looks promising: https://github.com/pradel/create-react-app-esbuild https://github.com/pradel/create-react-app-esbuild