Skip to content

Commit

Permalink
pwa added
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTartuf0 committed Mar 18, 2024
1 parent 7d96489 commit 34465a2
Show file tree
Hide file tree
Showing 18 changed files with 7,830 additions and 4,386 deletions.
3 changes: 2 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<ion-app>
<VitePwaManifest />
<ion-router-outlet />
</ion-app>
</ion-app>
</template>
59 changes: 56 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,62 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: ['~/assets/css/main.css'],
devtools: { enabled: false },
modules: ['@nuxtjs/ionic'],
ssr: false,
devtools: { enabled: false },
css: ["~/assets/css/main.css"],
modules: ["@nuxtjs/ionic", "@vite-pwa/nuxt"],
vue: {
compilerOptions: {
isCustomElement: (tag) => ['VitePwaManifest'].includes(tag),
},
},
pwa: {
manifest: {
short_name: "LedWall",
name: "LedWall - Free Spirit",
description: "An app to control the led wall",
theme_color: '#ff6909',
background_color: '#23a7e4',
// background_color: '#ff6909',
icons: [
{
src: "icons/pwa-64x64.png",
sizes: "64x64",
type: "image/png",
},
{
src: "icons/pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: 'icons/pwa-512x512.png',
sizes: '512x512',
type: 'image/png'
},
{
src: "icons/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any",
},
{
src: "icons/maskable-icon-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
},
client: {
installPrompt: true,
},
registerWebManifestInRouteRules: true,
devOptions: {
enabled: true,
navigateFallbackAllowlist: [/^\/$/],
},
registerType: "autoUpdate",
},
postcss: {
plugins: {
tailwindcss: {},
Expand Down
Loading

0 comments on commit 34465a2

Please sign in to comment.