Skip to content

Commit 633083c

Browse files
committed
chore: add icons with @vite-pwa/nuxt
1 parent 3ed8a09 commit 633083c

6 files changed

Lines changed: 2991 additions & 156 deletions

File tree

nuxt.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineNuxtConfig({
88
'@nuxt/image',
99
'nuxt-og-image',
1010
'@nuxt/test-utils',
11+
'@vite-pwa/nuxt',
1112
],
1213

1314
devtools: { enabled: true },
@@ -69,4 +70,19 @@ export default defineNuxtConfig({
6970
htmlValidator: {
7071
failOnError: true,
7172
},
73+
74+
pwa: {
75+
// Disable service worker - only using for asset generation
76+
disable: true,
77+
pwaAssets: {
78+
config: true,
79+
},
80+
manifest: {
81+
name: 'npmx',
82+
short_name: 'npmx',
83+
description: 'A fast, accessible npm package browser for power users',
84+
theme_color: '#0a0a0a',
85+
background_color: '#0a0a0a',
86+
},
87+
},
7288
})

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
"@nuxt/test-utils": "3.23.0",
4444
"@playwright/test": "1.57.0",
4545
"@unocss/nuxt": "^66.6.0",
46+
"@vite-pwa/assets-generator": "^1.0.2",
47+
"@vite-pwa/nuxt": "^1.1.0",
4648
"@vitest/browser-playwright": "^4.0.17",
4749
"@vitest/coverage-v8": "^4.0.17",
4850
"@vue/test-utils": "2.4.6",
@@ -59,6 +61,15 @@
5961
"vitest": "^4.0.17",
6062
"vue-tsc": "3.2.2"
6163
},
64+
"pnpm": {
65+
"packageExtensions": {
66+
"@nuxt/scripts": {
67+
"dependencies": {
68+
"estree-walker": "^3.0.3"
69+
}
70+
}
71+
}
72+
},
6273
"simple-git-hooks": {
6374
"pre-commit": "npx lint-staged"
6475
},

0 commit comments

Comments
 (0)