- Added VitePWA

This commit is contained in:
Greg L
2023-11-23 19:22:36 -05:00
parent 4390734854
commit ee39ce26c1
3 changed files with 193 additions and 128 deletions
+1
View File
@@ -54,6 +54,7 @@
"socket.io-client": "^4.6.1", "socket.io-client": "^4.6.1",
"uuid": "^9.0.1", "uuid": "^9.0.1",
"vite": "^5.0.2", "vite": "^5.0.2",
"vite-plugin-pwa": "^0.17.0",
"vite-plugin-react-js-support": "^1.0.7", "vite-plugin-react-js-support": "^1.0.7",
"yup": "^0.32.9" "yup": "^0.32.9"
}, },
+172 -126
View File
File diff suppressed because it is too large Load Diff
+19 -1
View File
@@ -1,12 +1,30 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
import { resolve } from 'path' import { resolve } from 'path'
export default defineConfig({ export default defineConfig({
plugins: [react()],
resolve: { resolve: {
alias: { alias: {
'@': resolve(__dirname, 'src') '@': resolve(__dirname, 'src')
} }
},
plugins: [
react(),
VitePWA({
manifest: {
name: 'FlowiseAI - Build LLMs Apps Easily',
short_name: 'Flowise',
theme_color: '#00000000',
icons: [
{
src: '/public/favicon-32x32.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable'
} }
]
}
})
]
}) })