summaryrefslogtreecommitdiffstats
path: root/apps/projects-web/src/app/index.ts
blob: febb583247fdcffdd03dad377ad22a4749f29b13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"),
});