feat: integrate PWA support with @ducanh2912/next-pwa
Configure Progressive Web App capabilities for production builds, enabling offline support and installability. PWA is disabled in dev to avoid HMR conflicts, and switches the build to webpack since PWA tooling requires it.
This commit is contained in:
+2
-1
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"build": "next build --webpack",
|
||||
"start": "next start",
|
||||
"lint": "eslint",
|
||||
"lint:fix": "eslint --fix",
|
||||
@@ -14,6 +14,7 @@
|
||||
"generate-barrels": "barrelsby --delete -c barrelsby.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ducanh2912/next-pwa": "^10.2.9",
|
||||
"@fingerprintjs/fingerprintjs": "^5.2.0",
|
||||
"@xstate/react": "^5",
|
||||
"classnames": "^2.5.1",
|
||||
|
||||
Reference in New Issue
Block a user