diff options
Diffstat (limited to 'apps/portal/src/app/index.ts')
| -rw-r--r-- | apps/portal/src/app/index.ts | 14 |
1 files changed, 14 insertions, 0 deletions
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"), +}); |
