mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-12 22:00:02 -04:00
22 lines
531 B
TypeScript
22 lines
531 B
TypeScript
import App from "./App.svelte";
|
|
import "./index.css";
|
|
if (import.meta.env.VITE_ADRIFT_DEV) {
|
|
console.log(
|
|
"%cADRIFT RUNNING IN DEVELOPMENT MODE",
|
|
"background: blue; color: white; font-size: x-large"
|
|
);
|
|
} else {
|
|
console.log(
|
|
"%cADRIFT RUNNING IN PRODUCTION MODE",
|
|
"background: blue; color: white; font-size: x-large"
|
|
);
|
|
}
|
|
|
|
const app = new App({
|
|
target: document.getElementById("app")!,
|
|
});
|
|
|
|
if (!import.meta.env.VITE_ADRIFT_SINGLEFILE) {
|
|
navigator.serviceWorker.register("/sw.js");
|
|
}
|
|
export default app;
|