Feature: add pwa again

This commit is contained in:
Dreamacro 2021-07-22 23:11:52 +08:00
parent acf8848cae
commit 91f25ba175
3 changed files with 1495 additions and 100 deletions

View File

@ -26,18 +26,18 @@
},
"devDependencies": {
"@types/lodash-es": "^4.17.4",
"@types/node": "^16.3.1",
"@types/node": "^16.4.0",
"@types/react": "^17.0.14",
"@types/react-dom": "^17.0.9",
"@types/react-router-dom": "^5.1.8",
"@types/react-table": "^7.7.2",
"@types/react-virtualized-auto-sizer": "^1.0.1",
"@types/react-window": "^1.8.4",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"@typescript-eslint/eslint-plugin": "^4.28.4",
"@typescript-eslint/parser": "^4.28.4",
"@vitejs/plugin-react-refresh": "^1.3.5",
"babel-eslint": "^10.1.0",
"eslint": "^7.30.0",
"eslint": "^7.31.0",
"eslint-config-react-app": "^6.0.0",
"eslint-config-standard-with-typescript": "^20.0.0",
"eslint-plugin-flowtype": "^5.8.0",
@ -50,8 +50,9 @@
"sass": "^1.35.2",
"type-fest": "^1.2.2",
"typescript": "^4.3.5",
"vite": "^2.4.2",
"vite-plugin-windicss": "^1.2.4",
"vite": "^2.4.3",
"vite-plugin-pwa": "^0.8.1",
"vite-plugin-windicss": "^1.2.5",
"vite-tsconfig-paths": "^3.3.13",
"windicss": "^3.1.5"
},
@ -61,7 +62,7 @@
"dayjs": "^1.10.6",
"eventemitter3": "^4.0.7",
"immer": "^9.0.5",
"jotai": "^1.1.3",
"jotai": "^1.2.2",
"lodash-es": "^4.17.21",
"neverthrow": "^4.2.2",
"react": "^17.0.2",

View File

@ -1,5 +1,6 @@
import reactRefresh from '@vitejs/plugin-react-refresh'
import tsConfigPath from 'vite-tsconfig-paths'
import { VitePWA } from 'vite-plugin-pwa'
import windiCSS from 'vite-plugin-windicss'
import { defineConfig } from 'vite'
@ -8,6 +9,7 @@ export default defineConfig({
reactRefresh(),
tsConfigPath(),
windiCSS(),
VitePWA(),
// https://github.com/vitejs/vite/issues/2144
{
name: 'remove-css-in-js',

1578
yarn.lock

File diff suppressed because it is too large Load Diff