File size: 345 Bytes
c2bad5a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
const httpServer = require('http-server');
const path = require('path');
const server = httpServer.createServer({
root: path.resolve(__dirname),
mimeTypes: {
'application/wasm': ['.wasm']
}
});
const PORT = 8080;
server.listen(PORT, () => {
console.log(`Server running at http://127.0.0.1:${PORT}/`);
});
|