sw works in production build

This commit is contained in:
Martti Malmi
2023-11-20 14:22:52 +02:00
parent ef85b47b58
commit 69c97033fb
4 changed files with 201 additions and 6 deletions

View File

@ -49,7 +49,7 @@
},
"scripts": {
"start": "vite",
"build": "vite build",
"build": "yarn eslint --fix && vite build",
"serve": "vite preview",
"test": "jest --runInBand",
"intl-extract": "formatjs extract 'src/**/*.ts*' --ignore='**/*.d.ts' --out-file src/lang.json --flatten true",
@ -126,6 +126,7 @@
"ts-loader": "^9.4.4",
"typescript": "^5.2.2",
"vite": "^5.0.0",
"vite-plugin-pwa": "^0.17.0",
"webpack": "^5.88.2",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.1.4",