From 83b11393da8f733c0ffc5abed5d1e0e827d04b61 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Thu, 2 Jun 2022 23:02:22 +0200 Subject: refactor: Rename accounts to portal --- apps/portal/src/app/index.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 apps/portal/src/app/index.ts (limited to 'apps/portal/src/app/index.ts') diff --git a/apps/portal/src/app/index.ts b/apps/portal/src/app/index.ts new file mode 100644 index 0000000..0bfb30d --- /dev/null +++ b/apps/portal/src/app/index.ts @@ -0,0 +1,14 @@ +import App from "./index.svelte"; +import "./index.scss"; +import {is_debug, is_development} from "$shared/lib/configuration"; +import {noop} from "$shared/lib/helpers"; + +if (!is_development() && !is_debug()) { + console.log("%c Production; Suppressing logs", "background-color:yellow;color:black;font-size:18px;"); + console.log = noop; +} + +// @ts-ignore +export default new App({ + target: document.getElementById("root"), +}); -- cgit v1.3