electron-userland / electron-userland/electron-webpack
Launching main renderer window using 'file://' rather than `http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`
- Dominant language
- TypeScript
- Stars
- 902
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
Hello and thanks for all your fantastic work!
This is probably a no-can-do, but I don't understand enough about Webpack to be sure, so thought i'd ask.
Currently running into a situation where I am trying to load images via ``. Because electron-webpack uses the dev server and loads a URL, these images trigger `Not allowed to load local resource` Electron warning. This warning doesn't occur in the packaged application, because then we are serving from file system.
Now I could just go and disable `webSecurity` while `IS_DEV` is true, but i'd prefer to keep my PROD / DEV as close as possible, bringing me to this question...
-> Is there any way to load renderer window from file-system / packaged while still maintaining all the HMR / webpack-dev-goodness-stuff?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.