import { precacheAndRoute , cleanupOutdatedCaches , createHandlerBoundToURL } from 'workbox-precaching' ; import { registerRoute , NavigationRoute } from 'workbox-routing' ; declare let self ; self . addEventListener ( 'message' , ( event ) => { if ( event . data && event . data . type === 'SKIP_WAITING' ) self . skipWaiting ( ) ; } ) ; precacheAndRoute ( self . __WB_MANIFEST ) ; cleanupOutdatedCaches ( ) ; registerRoute ( new NavigationRoute ( createHandlerBoundToURL ( 'index.html' ) ) ) ;