Feature: PWA (#479)
* feat: add PWA support with offline capabilities - Add web app manifest with icons and theme configuration - Add service worker with cache-first strategy for static assets - Add useServiceWorker hook for SW registration - Add PWA meta tags and Apple-specific tags to index.html - Update vite.config.ts for optimal asset caching * Update package-lock.json
This commit was merged in pull request #479.
This commit is contained in:
@@ -20,6 +20,7 @@ export default defineConfig({
|
||||
base: "./",
|
||||
build: {
|
||||
sourcemap: false,
|
||||
assetsInlineLimit: 0,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
@@ -35,9 +36,9 @@ export default defineConfig({
|
||||
server: {
|
||||
https: useHTTPS
|
||||
? {
|
||||
cert: fs.readFileSync(sslCertPath),
|
||||
key: fs.readFileSync(sslKeyPath),
|
||||
}
|
||||
cert: fs.readFileSync(sslCertPath),
|
||||
key: fs.readFileSync(sslKeyPath),
|
||||
}
|
||||
: false,
|
||||
port: 5173,
|
||||
host: "localhost",
|
||||
|
||||
Reference in New Issue
Block a user