- 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",
"uuid": "^9.0.1",
"vite": "^5.0.2",
"vite-plugin-pwa": "^0.17.0",
"vite-plugin-react-js-support": "^1.0.7",
"yup": "^0.32.9"
},
+172 -126
View File
File diff suppressed because it is too large Load Diff
+20 -2
View File
@@ -1,12 +1,30 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
import { resolve } from 'path'
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': 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'
}
]
}
})
]
})