@vite-pwa/nuxt 0.3.3 → 0.3.4
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/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { defineNuxtModule, createResolver, getNuxtVersion, addPlugin, addCompone
|
|
|
4
4
|
import { VitePWA } from 'vite-plugin-pwa';
|
|
5
5
|
import { resolve } from 'pathe';
|
|
6
6
|
|
|
7
|
-
const version = "0.3.
|
|
7
|
+
const version = "0.3.4";
|
|
8
8
|
|
|
9
9
|
function configurePWAOptions(nuxt3_8, options, nuxt, nitroConfig) {
|
|
10
10
|
if (!options.outDir) {
|
|
@@ -128,11 +128,6 @@ const module = defineNuxtModule({
|
|
|
128
128
|
src: resolver.resolve(runtimeDir, "plugins/pwa.client"),
|
|
129
129
|
mode: "client"
|
|
130
130
|
});
|
|
131
|
-
} else {
|
|
132
|
-
addPlugin({
|
|
133
|
-
src: resolver.resolve(runtimeDir, "plugins/pwa.client.stub"),
|
|
134
|
-
mode: "client"
|
|
135
|
-
});
|
|
136
131
|
}
|
|
137
132
|
await Promise.all([
|
|
138
133
|
addComponent({
|
|
@@ -145,8 +140,7 @@ const module = defineNuxtModule({
|
|
|
145
140
|
})
|
|
146
141
|
]);
|
|
147
142
|
nuxt.hook("prepare:types", ({ references }) => {
|
|
148
|
-
|
|
149
|
-
references.push({ path: resolver.resolve(nuxt.options.buildDir, types) });
|
|
143
|
+
references.push({ path: resolver.resolve(runtimeDir, "plugins/types") });
|
|
150
144
|
references.push({ types: "@vite-pwa/nuxt/configuration" });
|
|
151
145
|
references.push({ types: "vite-plugin-pwa/vue" });
|
|
152
146
|
references.push({ types: "vite-plugin-pwa/info" });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-pwa/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.4",
|
|
5
5
|
"packageManager": "pnpm@8.11.0",
|
|
6
6
|
"description": "Zero-config PWA for Nuxt 3",
|
|
7
7
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dev:generate:netlify": "NITRO_PRESET=netlify nuxi generate playground",
|
|
44
44
|
"dev:generate:vercel": "NITRO_PRESET=vercel nuxi generate playground",
|
|
45
45
|
"dev:build": "nuxi build playground",
|
|
46
|
-
"dev:prepare": "nuxt-module-build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
46
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
47
47
|
"dev:preview:build": "nr dev:build && node playground/.output/server/index.mjs",
|
|
48
48
|
"dev:preview:generate": "nr dev:generate && serve playground/dist",
|
|
49
49
|
"release": "bumpp && npm publish",
|