electron-userland / electron-userland/electron-webpack-quick-start

static files are not loading in development environment

Open
#58 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.