summaryrefslogtreecommitdiffstats
path: root/apps/projects/src/app/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/projects/src/app/index.ts')
-rw-r--r--apps/projects/src/app/index.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/projects/src/app/index.ts b/apps/projects/src/app/index.ts
new file mode 100644
index 0000000..febb583
--- /dev/null
+++ b/apps/projects/src/app/index.ts
@@ -0,0 +1,16 @@
+// @ts-ignore
+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 Debug", "background-color:yellow;color:black;font-size:18px;");
+} else {
+ console.log("%c Production; Suppressing logs", "background-color:yellow;color:black;font-size:18px;");
+ console.log = noop;
+}
+
+export default new App({
+ target: document.getElementById("root"),
+});