added pwa config

This commit is contained in:
Mamalizz
2025-03-06 18:03:43 +03:30
parent f2188ebd73
commit 9b73d4c295
3 changed files with 3525 additions and 54 deletions
+31
View File
@@ -14,6 +14,9 @@ export default defineNuxtConfig({
},
app: {
head: {
title: "فروشگاه هی ملز",
},
pageTransition: {
enterActiveClass:
"animate__animated animate__fadeIn animate__faster",
@@ -71,8 +74,36 @@ export default defineNuxtConfig({
"@vueuse/nuxt",
"@formkit/auto-animate/nuxt",
"@nuxt/test-utils/module",
"@vite-pwa/nuxt",
],
pwa: {
strategies: "injectManifest",
srcDir: "public",
filename: "sw.js",
manifest: {
name: "Heymlz",
short_name: "Heymlz",
theme_color: "#ffffff",
icons: [
{
src: "/logo/logo-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/logo/logo-512x512.png",
sizes: "512x512",
type: "image/png",
},
],
},
workbox: {
navigateFallback: "/",
},
devOptions: { enabled: true, type: "module" },
},
runtimeConfig: {
public: {
API_BASE_URL: "https://api.heymlz.com",
+3491 -53
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -18,6 +18,7 @@
"@nuxtjs/google-fonts": "^3.2.0",
"@tanstack/vue-query": "^5.62.2",
"@tanstack/vue-query-devtools": "^5.62.3",
"@vite-pwa/nuxt": "^0.10.6",
"@vuelidate/core": "^2.0.3",
"@vuelidate/validators": "^2.0.4",
"@vueuse/integrations": "^12.4.0",
@@ -39,7 +40,8 @@
"vue-scrollto": "^2.20.0",
"vue-skeletor": "^1.0.6",
"vue3-marquee": "^4.2.2",
"vue3-persian-datetime-picker": "^1.2.2"
"vue3-persian-datetime-picker": "^1.2.2",
"workbox-window": "^7.3.0"
},
"devDependencies": {
"@nuxt/test-utils": "^3.15.4",