Skip to content

Determine how to add static files (images, music) to the project #4

@parkerc22

Description

@parkerc22

const guitarMusic = require("./public/music.mp3").default;

If we have a directory called "public" with the desired file inside (music or an image or the like), the above code generates a local URL that we can use in app.js:

audioLoader.load( guitarMusic, function( buffer ) {
...
});

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions