When serving .wasm (WebAsssembly) files the returned mime type is application/octet-stream. Browsers require this to be application/wasm to use these files.
browser-sync start --server
Traced the issue back to the send package. Here's the relevant PR pillarjs/send#154
Create a bs-config.js file:
browser-sync init
... and add:
"callbacks": {
ready: function(err, bs) {
bs.utils.serveStatic.mime.define({ 'application/wasm': ['wasm'] });
console.log("---> " + bs.utils.serveStatic.mime.lookup('.wasm'));
}
},
Set all other options as required
(eg. server:true)
Start like this:
browser-sync start --config bs-config.js
Make sure you clean your browser cache.
Most helpful comment
Create a bs-config.js file:
... and add:
Set all other options as required
(eg. server:true)
Start like this:
Make sure you clean your browser cache.