Files
cannaiq/cannaiq/package.json
Kelly ad09aadcc9 feat(cannaiq): Add PWA support with vite-plugin-pwa
- Add vite-plugin-pwa for service worker and manifest generation
- Configure workbox for asset caching and API runtime caching
- Add sharp for icon generation from SVG
- Create generate-icons.js script to create 192x192 and 512x512 PNGs
- Update build script to auto-generate icons before build

App is now installable as a PWA with offline support.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-13 19:49:15 -07:00

35 lines
902 B
JSON
Executable File

{
"name": "cannaiq-frontend",
"version": "1.2.1",
"type": "module",
"scripts": {
"dev": "vite --host",
"dev:admin": "vite --host --port 8080",
"generate-icons": "node scripts/generate-icons.js",
"build": "node scripts/generate-icons.js && tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"@headlessui/react": "^2.2.9",
"lucide-react": "^0.553.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.20.0",
"recharts": "^3.4.1",
"zustand": "^4.4.7"
},
"devDependencies": {
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.16",
"daisyui": "^4.4.19",
"postcss": "^8.4.32",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"vite": "^5.0.8",
"vite-plugin-pwa": "^0.21.1",
"sharp": "^0.33.5"
}
}