-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
How to make HMR Work? #84
Comments
Ok can confirm that HMR does not work if you define custom directories. You should either fix this or note that HMR only works with default settings as it causes quite a bit of confusion and issues. |
@bradennapier I have the same problem. What's your mean about custom directories? |
I am not able to get HMR working either, even on the renderer thread. These are the only custom additions I have for the renderer thread: module.exports = {
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}
]
}
}; |
Currently I am not use |
From what I observed, this is not specific to HMR. What I did is I just cloned the
When I now do So, it appears as if WDS is not watching the custom sourceDirectory files. Notes: I am on Windows. I tried sourceDirectory values with and without leading @bradennapier @bradharms I have a working HMR setup here: https://github.com/loopmode/electron-webpack-quick-start |
I have the same problem in Windows when using custom folders. Using the standard |
Anyone know what needs fixed in a pull request for this issue? |
issue solved in 2.0.0 pre-release, anyone having this problem should update |
As of version 2.1.2 this is still an issue. If I do not specify 'sourceDirectory' values I get HMR working. If I do set a 'sourceDirectory', even if it is to the default paths ('src/main', 'src/renderer') I do not get HMR support. |
Also chiming in that as of 2.1.2 this is still a very annoying issue. Using symlinks on Linux does not seem to help. I really don't want to have to use the forced paths to get HMR. Ang suggestions? |
Have been pondering over this issue, and have now submitted a PR. I have isolated the issue down, as demonstrated in this repo: And you can find progress of the PR here: |
I am using React. As soon as I declared a |
same issue for me. |
Just setting this up and it would appear that HMR does not actually work?
In my case I am trying to get the main process to automatically update when I do something. It doesn't appear to do anything at all when I change the "main" source?
I am using custom directories, not sure if that breaks it for whatever reason.
The text was updated successfully, but these errors were encountered: