11 lines
317 B
JavaScript
11 lines
317 B
JavaScript
var express = require('express');
|
|
var path = require('path');
|
|
var pathToBuild = process.argv[2] || '../../../target/wasm32-unknown-unknown/release';
|
|
|
|
var app = express();
|
|
|
|
app.use(express.static(path.resolve(pathToBuild), { index: false }));
|
|
app.use(express.static(path.resolve('./', __dirname)));
|
|
|
|
app.listen(8080);
|