Open zxch3n opened 2 years ago
Still very relevant. In addition to this, this line breaks hot reload:
(Because after compilation, the files get there, and since webpack considers this static, then when changing the static, it performs a full page reload, instead of hot reload)
Pre-flight checklist
Electron Forge version
6.0.0-beta.61
Electron version
15.1.1
Operating system
macOS 11.6
Last known working Electron Forge version
No response
Expected behavior
allow user to overide devServer.static config
https://github.dev/electron-userland/electron-forge/blob/c05748519b8257f100e9e3dbf9903258baa85056/packages/plugin/webpack/src/WebpackPlugin.ts#L353-L374
Otherwise react HMR is not working. It will always reload the page if change detected.
Actual behavior
React HMR is not compatible with electron forge. Because static file changed right after content is modified, and the
watch
config will cause the page refreshing.Steps to reproduce
as above
Additional information
No response