import toolbox from 'sw-toolbox/sw-toolbox.js' ; type ServiceWorkerOptions = { assets : ReadonlyArray < string > ; } ; declare const serviceWorkerOption ; const { assets } = serviceWorkerOption ; const assetsToCache = [ ... assets , './' , ] ; toolbox . precache ( assetsToCache ) ; toolbox . router . get ( '/*' , toolbox . cacheFirst , { debug : __DEBUG__ , } ) ;