14 lines
427 B
TypeScript
14 lines
427 B
TypeScript
import { createApp } from "vue";
|
|
import { registerSW } from "virtual:pwa-register";
|
|
import App from "./App.vue";
|
|
import "./style.css";
|
|
|
|
/*
|
|
* Registration is deliberately immediate so an installed app becomes
|
|
* offline-capable during its first session. `autoUpdate` in the Vite plugin
|
|
* activates a fresh build without requiring a custom update prompt yet.
|
|
*/
|
|
registerSW({ immediate: true });
|
|
|
|
createApp(App).mount("#app");
|