mirror of
https://github.com/bendtherules/multimeter-connect-web.git
synced 2026-08-18 13:52:26 +00:00
Migrate to @ducanh2912/next-pwa
This commit is contained in:
+1
-4
@@ -1,11 +1,8 @@
|
|||||||
const runtimeCaching = require("next-pwa/cache");
|
const withPWA = require("@ducanh2912/next-pwa").default({
|
||||||
|
|
||||||
const withPWA = require("next-pwa")({
|
|
||||||
dest: "public",
|
dest: "public",
|
||||||
skipWaiting: true,
|
skipWaiting: true,
|
||||||
register: true,
|
register: true,
|
||||||
sw: "/sw.js",
|
sw: "/sw.js",
|
||||||
runtimeCaching,
|
|
||||||
dynamicStartUrl: false,
|
dynamicStartUrl: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Generated
+557
-918
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -9,6 +9,7 @@
|
|||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@ducanh2912/next-pwa": "^9.2.1",
|
||||||
"@types/node": "20.4.2",
|
"@types/node": "20.4.2",
|
||||||
"@types/react": "18.2.15",
|
"@types/react": "18.2.15",
|
||||||
"@types/react-dom": "18.2.7",
|
"@types/react-dom": "18.2.7",
|
||||||
@@ -17,7 +18,6 @@
|
|||||||
"eslint": "8.44.0",
|
"eslint": "8.44.0",
|
||||||
"eslint-config-next": "13.4.9",
|
"eslint-config-next": "13.4.9",
|
||||||
"next": "13.4.9",
|
"next": "13.4.9",
|
||||||
"next-pwa": "^5.6.0",
|
|
||||||
"postcss": "8.4.26",
|
"postcss": "8.4.26",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user