Some refactorings

This commit is contained in:
Henning Dieterichs
2019-07-31 20:16:48 +02:00
parent 922eb0b845
commit e4e17c69b6
28 changed files with 6021 additions and 5952 deletions

View File

@@ -43,7 +43,7 @@ class WebView {
const debugVisualizer = "debugVisualizer";
function getHtml(server: Server) {
const isDev = true;
const isDev = false;
return `
<html>
<head>
@@ -168,7 +168,7 @@ class Server {
constructor(sources: Sources) {
const app = express();
app.use(serveStatic(join(__dirname, "../../ui/dist")));
app.use(serveStatic(join(__dirname, "../ui/dist")));
this.server = app.listen();
@@ -187,7 +187,7 @@ class Server {
}
public get mainBundle(): string {
return `http://localhost:${this.port}/main-efe6bdc4b62fdc7971ee.js`;
return `http://localhost:${this.port}/main.js`;
}
public get port(): number {