This topic describes how to add already existing WebAssembly modules and their accompanying files to a Web application project.
To embed an existing, working WebAssembly (WASM) application into a Web application, you need the following:
You can use the example WebAssembly application as a WebAssembly module reference.
To embed a WebAssembly module in your Web application project:
Figure 1. Check the Project Location
If you used the WebAssembly sample application, extract all its files to the Web application project location.
<content src="index.html"/>
For the WebAssembly sample application the tag must read: <content src="hello.html"/>
<content src="hello.html"/>
Once all the required files are in place, you can run the Web application to verify that it works properly. For more information, see Running WebAssembly Applications.
Note Running and debugging Web application projects works the same way for both regular (HTML+JS only) and WebAssembly-enabled projects.
Running and debugging Web application projects works the same way for both regular (HTML+JS only) and WebAssembly-enabled projects.