@shopbite-de/storefront 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/nuxt.config.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  // https://v3.nuxtjs.org/api/configuration/nuxt.config
2
+ const sw = process.env.SW === "true";
3
+
2
4
  export default defineNuxtConfig({
3
5
  app: {
4
6
  head: {
@@ -107,29 +109,44 @@ export default defineNuxtConfig({
107
109
  },
108
110
 
109
111
  pwa: {
112
+ strategies: sw ? "injectManifest" : "generateSW",
113
+ srcDir: sw ? "service-worker" : undefined,
114
+ filename: sw ? "sw.ts" : undefined,
115
+ registerType: "autoUpdate",
110
116
  manifest: {
111
117
  name: "ShopBite",
112
118
  short_name: "ShopBite",
113
119
  theme_color: "#ff5b00",
114
120
  icons: [
115
121
  {
116
- src: "dark/Logo.svg",
122
+ src: "shopbite-192.png",
117
123
  sizes: "192x192",
118
- type: "image/svg",
124
+ type: "image/png",
119
125
  },
120
126
  {
121
- src: "dark/Logo.svg",
127
+ src: "shopbite-512.png",
122
128
  sizes: "512x512",
123
- type: "image/svg",
129
+ type: "image/png",
124
130
  },
125
131
  {
126
- src: "dark/Logo.svg",
132
+ src: "shopbite-512.png",
127
133
  sizes: "512x512",
128
134
  type: "image/svg",
129
135
  purpose: "any maskable",
130
136
  },
131
137
  ],
132
138
  },
139
+ workbox: {
140
+ globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
141
+ globIgnores: ["**/_payload.json"],
142
+ },
143
+ injectManifest: {
144
+ globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
145
+ globIgnores: ["**/_payload.json"],
146
+ },
147
+ client: {
148
+ installPrompt: true,
149
+ },
133
150
  },
134
151
 
135
152
  nitro: {
@@ -149,6 +166,8 @@ export default defineNuxtConfig({
149
166
 
150
167
  experimental: {
151
168
  asyncContext: true,
169
+ payloadExtraction: true,
170
+ watcher: "parcel",
152
171
  },
153
172
  $development: {
154
173
  modules: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopbite-de/storefront",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "main": "nuxt.config.ts",
5
5
  "description": "Shopware storefront for food delivery shops",
6
6
  "keywords": [
Binary file
Binary file