diff --git a/Source/Webserver/index.ts b/Source/Webserver/index.ts index 93f2ca3..e47ff1c 100644 --- a/Source/Webserver/index.ts +++ b/Source/Webserver/index.ts @@ -28,6 +28,10 @@ export function startWebserver(config: any) { extname: ".liquid", }); + if (config) { + console.log("test"); + } + // View engine options app.engine("liquid", engine.express()); app.set("views", [VIEWS_DIRECTORY, PARTIALS_DIRECTORY, LAYOUTS_DIRECTORY]); diff --git a/Source/classes/Main.ts b/Source/classes/Main.ts index 9d78a8b..da8855d 100644 --- a/Source/classes/Main.ts +++ b/Source/classes/Main.ts @@ -1,4 +1,3 @@ -import path from "path"; import { startWebserver } from "../Webserver/index"; import config from "../../config.json"; diff --git a/Source/index.ts b/Source/index.ts index 827ee55..618d398 100644 --- a/Source/index.ts +++ b/Source/index.ts @@ -5,6 +5,5 @@ */ import { MangoRecipe } from "./classes/Main"; -import config from "../config.json"; new MangoRecipe();