September 2018
Intermediate to advanced
328 pages
9h 10m
English
We're going to configure the build in two ways: with VS Code tasks and a Makefile. Makefiles are nice if you prefer to use a different editor than VS Code. The /.vscode/tasks.json file already contains the tasks you'll need to build the project. The Emscripten build step is the default (a set of native build tasks is also present). Let's walk through each task in the tasks array and review what's taking place. The first task deletes any existing compiled output files prior to building:
{ "label": "Remove Existing Web Files", "type": "shell", "command": "rimraf", "options": { "cwd": "${workspaceRoot}/public" }, "args": [ "index.js", "index.wasm" ]}
The second task performs the build with the emcc command:
{ "label": ...Read now
Unlock full access