electron-webpack icon indicating copy to clipboard operation
electron-webpack copied to clipboard

Changes are not reflected in Electron when using an external directory

Open jordymeow opened this issue 4 years ago • 0 comments

  • Version: 2.8.2

Sorry, that's already my second question.

Since I failed to use electron-webpack with Yarn Workspaces, I am using an external directory through an alias, like this:

resolve: {
  alias: {
    '@common': Path.resolve(__dirname, '../common')
  }
}

It works, and when a change is made in the common directory, I can see that something is being re-compiled by Electron:

[0] wait  - compiling...
[0] event - compiled successfully

However, the Electron app itself is not refreshing, and if I force a refresh, the latest version of the app is not there. If I restart Electron completely, it works. Any idea what the problem could be?

Thanks a lot.

jordymeow avatar Jun 19 '20 15:06 jordymeow