@vite-pwa/nuxt 0.7.0 → 0.8.0
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.
|
@@ -3,7 +3,7 @@ import { resolve, relative, basename } from 'node:path';
|
|
|
3
3
|
import { readFile } from 'node:fs/promises';
|
|
4
4
|
import { instructions } from '@vite-pwa/assets-generator/api/instructions';
|
|
5
5
|
import { loadConfig } from '@vite-pwa/assets-generator/config';
|
|
6
|
-
import { p as pwaIcons, g as generatePwaImageType } from '../shared/nuxt.
|
|
6
|
+
import { p as pwaIcons, g as generatePwaImageType } from '../shared/nuxt.95913728.mjs';
|
|
7
7
|
import '@nuxt/kit';
|
|
8
8
|
import 'vite-plugin-pwa';
|
|
9
9
|
import 'node:crypto';
|
|
@@ -16,7 +16,7 @@ async function preparePWAIconTypes(options, nuxt) {
|
|
|
16
16
|
const configuration = resolvePWAAssetsOptions(options);
|
|
17
17
|
if (!configuration || configuration.disabled)
|
|
18
18
|
return;
|
|
19
|
-
const root = nuxt.options.
|
|
19
|
+
const root = nuxt.options.vite.root ?? process.cwd();
|
|
20
20
|
const { config, sources } = await loadConfiguration(root, configuration);
|
|
21
21
|
if (!config.preset)
|
|
22
22
|
return;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { createHash } from 'node:crypto';
|
|
|
6
6
|
import { createReadStream } from 'node:fs';
|
|
7
7
|
import { resolve } from 'pathe';
|
|
8
8
|
|
|
9
|
-
const version = "0.
|
|
9
|
+
const version = "0.8.0";
|
|
10
10
|
|
|
11
11
|
function configurePWAOptions(nuxt3_8, options, nuxt, nitroConfig) {
|
|
12
12
|
if (!options.outDir) {
|
|
@@ -265,7 +265,11 @@ async function doSetup(options, nuxt) {
|
|
|
265
265
|
const resolveVitePluginPWAAPI = () => {
|
|
266
266
|
return vitePwaClientPlugin?.api;
|
|
267
267
|
};
|
|
268
|
-
const client = options.client ?? {
|
|
268
|
+
const client = options.client ?? {
|
|
269
|
+
registerPlugin: true,
|
|
270
|
+
installPrompt: false,
|
|
271
|
+
periodicSyncForUpdates: 0
|
|
272
|
+
};
|
|
269
273
|
const runtimeDir = resolver.resolve("../runtime");
|
|
270
274
|
if (!nuxt.options.ssr)
|
|
271
275
|
nuxt.options.build.transpile.push(runtimeDir);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-pwa/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
4
|
+
"version": "0.8.0",
|
|
5
|
+
"packageManager": "pnpm@9.1.3",
|
|
6
6
|
"description": "Zero-config PWA for Nuxt 3",
|
|
7
7
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
8
8
|
"license": "MIT",
|