mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 02:05:39 +03:00
Enable navigation preload
This commit is contained in:
parent
2a80f876be
commit
3e752c110f
3 changed files with 5 additions and 0 deletions
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -66,6 +66,7 @@
|
|||
"vite-plugin-run": "~0.5.2",
|
||||
"workbox-cacheable-response": "~7.1.0",
|
||||
"workbox-expiration": "~7.1.0",
|
||||
"workbox-navigation-preload": "~7.1.0",
|
||||
"workbox-routing": "~7.1.0",
|
||||
"workbox-strategies": "~7.1.0"
|
||||
}
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
"vite-plugin-run": "~0.5.2",
|
||||
"workbox-cacheable-response": "~7.1.0",
|
||||
"workbox-expiration": "~7.1.0",
|
||||
"workbox-navigation-preload": "~7.1.0",
|
||||
"workbox-routing": "~7.1.0",
|
||||
"workbox-strategies": "~7.1.0"
|
||||
},
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { CacheableResponsePlugin } from 'workbox-cacheable-response';
|
||||
import { ExpirationPlugin } from 'workbox-expiration';
|
||||
import * as navigationPreload from 'workbox-navigation-preload';
|
||||
import { RegExpRoute, registerRoute, Route } from 'workbox-routing';
|
||||
import {
|
||||
CacheFirst,
|
||||
|
@ -7,6 +8,8 @@ import {
|
|||
StaleWhileRevalidate,
|
||||
} from 'workbox-strategies';
|
||||
|
||||
navigationPreload.enable();
|
||||
|
||||
self.__WB_DISABLE_DEV_LOGS = true;
|
||||
|
||||
const assetsRoute = new Route(
|
||||
|
|
Loading…
Reference in a new issue