Open a terminal and run :
nvm use # Optional, install Node.js 13
yarnThen, start a dev server :
yarn devYou will need to :
- Add your files into folders under the
assetsfolder ; - List your files into
assets/sounds.json.
First, copy assets/sounds.json.sample and add your files :
cp assets/sounds.json.sample assets/sounds.jsonImagine you have theses files :
public/assets/
|_folder-1/
| |_foo.mp3
| |_bar.mp3
|_folder-2/
|_baz.mp3
Then you would need the following JSON :
assets/sounds.json
{
"folder-1": ["foo.mp3", "bar.mp3"],
"folder-2": ["baz.mp3"]
}