12 lines
394 B
TypeScript
12 lines
394 B
TypeScript
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
import './style.css'
|
|
|
|
createApp(App).mount('#app')
|
|
if ('serviceWorker' in navigator && import.meta.env.PROD) {
|
|
navigator.serviceWorker.getRegistrations().then((registrations) => {
|
|
registrations.forEach((registration) => registration.unregister())
|
|
})
|
|
caches.keys().then((keys) => keys.forEach((key) => caches.delete(key)))
|
|
}
|