Skip to content

How can I load compiled files from a subfolder? #6164

Closed
@Evolveye

Description

@Evolveye

How can I load compiled files from a subfolder?

I want to create a project with such file architecture:

/webassembly/
    ├ index.html
    ├ css/
    ├ js/
    └ wasm/
        ├ example.cpp
        ├ example.js (generated by emscripten)
        └ example.wasm (generated by emscripten)

I'm using that emcc command syntax:
image

I'm loading example.js file by that markup:
image

Finally, the console is showing me that error:
imageimage

I did some research, but I didn't find any way to solve that problem.
Keeping all files in the root directory isn't good idea :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions