Howler.js integration #615
Answered
by
WolfAvenger
WolfAvenger
asked this question in
Q&A
-
Hi all! Actually worked with CRA, but using electron-vite first time only. Here is the next experiment. I wanted to create template audioplayer with local files using Howler.js in React. Downloaded audio presets, but don't know, how to run them. Placed files everywhere they may be placed. Nothing worked. How to use audiofiles correctly or maybe someone has used howler with this tool? Help plz :3 |
Beta Was this translation helpful? Give feedback.
Answered by
WolfAvenger
Sep 11, 2024
Replies: 1 comment
-
Finally found the place where the issue was. So there is how I did fix this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
WolfAvenger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finally found the place where the issue was. So there is how I did fix this:
electron.vite.config.ts
: Added on line 19assetsInclude: ["@renderer/assets/**/*.*"],
import soundfile from '@renderer/assets/audio/<file>.mp3
(Previously I created folderaudio
inrendedrer/src/assets
folder and pasted all files there)