electron-userland / electron-userland/electron-webpack-quick-start
static files are not loading in development environment
Open
- Dominant language
- JavaScript
- Stars
- 746
- Forks
- 245
- PR merge metrics
- No merged PRs in 30d
Description
In my `renderer` I'm trying to load an audio file placed in `static/audio/sound.mp3`, but it gives me file 404 not found.
```js
const mp3 = path.join(__static, "/audio/sound.mp3");
const audio = new Audio(mp3);
audio.play();
```
following the docs i used the `__static` variable but it's still not working.
I also tried with images and it still not working.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.