Added PWA support
This commit is contained in:
1 parent
27d92c55e5
commit
812884de1a
16 files changed
+926
-89
No files matched your search
+44
-1
@@ -25,7 +25,50 @@ export default defineNuxtConfig({
|
||||
mediaBaseUrl: "",
|
||||
},
|
||||
},
|
||||
modules: ["@nuxt/fonts", "@nuxt/icon", "@nuxt/image"],
|
||||
modules: ["@nuxt/fonts", "@nuxt/icon", "@nuxt/image", "@vite-pwa/nuxt"],
|
||||
pwa: {
|
||||
strategies: "injectManifest",
|
||||
srcDir: "../public",
|
||||
filename: "sw.js",
|
||||
registerType: "autoUpdate",
|
||||
registerWebManifestInRouteRules: true,
|
||||
injectManifest: {
|
||||
injectionPoint: undefined,
|
||||
},
|
||||
devOptions: {
|
||||
enabled: false,
|
||||
},
|
||||
manifest: {
|
||||
id: "/",
|
||||
name: "Music",
|
||||
short_name: "Music",
|
||||
description: "Your personal music library and player.",
|
||||
start_url: "/",
|
||||
scope: "/",
|
||||
display: "standalone",
|
||||
background_color: "#09090b",
|
||||
theme_color: "#09090b",
|
||||
categories: ["music", "entertainment"],
|
||||
icons: [
|
||||
{
|
||||
src: "/icons/pwa-192.png",
|
||||
sizes: "192x192",
|
||||
type: "image/png",
|
||||
},
|
||||
{
|
||||
src: "/icons/pwa-512.png",
|
||||
sizes: "512x512",
|
||||
type: "image/png",
|
||||
},
|
||||
{
|
||||
src: "/icons/pwa-maskable-512.png",
|
||||
sizes: "512x512",
|
||||
type: "image/png",
|
||||
purpose: "maskable",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
components: [
|
||||
{
|
||||
path: "~/ui",
|
||||
|
||||
Reference in new issue
Block a user