electron-userland / electron-userland/electron-webpack
noob getting lost in translation: making html files available
- Dominant language
- TypeScript
- Stars
- 902
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
* **Version**: 2.7.4
* **Target**: OSX
Pretty noob when it comes down to webpack, but had an electron app that was successfully packaged with electron-packger. Until OSX Catalina came out, and users could not install it due to the notarization. I found a good walkthrough to solve this with electron-builder, and hence, ended up reworking my app to comply with the ways of electron-builder -> using electron-webpack.
When I put files (like font files, or some static html) in the "static" folder, they don't show up when I check http://localhost:9080/webpack-dev-server.
I want to call window.loadURL(...) but i get 404 from the dev-server, and indeed, the files are not listed.
Do I need to change anything on the boilerplate configuration to make sure those files in that directory become available?
Thx & sorry for the noob question.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the missing-file behavior with the reported electron-webpack setup by opening http://localhost:9080/webpack-dev-server and checking the static folder contents. Start with the boilerplate configuration and the window.loadURL(...) request, then verify that font and HTML files are served and no longer return 404 responses.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript, webpack
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100