File tree 3 files changed +12
-1
lines changed 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 19
19
dev-dist
20
20
dist
21
21
node_modules
22
+ public /manifest.webmanifest
22
23
test /cypress /downloads
23
24
test /cypress /screenshots
24
25
test /cypress /videos
Original file line number Diff line number Diff line change
1
+ import { writeFileSync } from 'node:fs'
2
+ import { resolve } from 'node:path'
3
+ import { config } from './pwa.config'
4
+
5
+ const manifest = JSON . stringify ( config . manifest , null , 2 )
6
+
7
+ // The manifest is not being created on nuxt generate.
8
+ // https://github.com/vite-pwa/nuxt/issues/17
9
+ writeFileSync ( resolve ( './public/manifest.webmanifest' ) , manifest )
Original file line number Diff line number Diff line change 5
5
"private" : true ,
6
6
"type" : " module" ,
7
7
"scripts" : {
8
- "build" : " nuxt prepare && nuxt typecheck && nuxt generate" ,
8
+ "build" : " nuxt prepare && nuxt typecheck && tsx manifest.ts && nuxt generate" ,
9
9
"clean" : " rimraf .output dev-dist dist" ,
10
10
"dev" : " nuxt dev --port 8888" ,
11
11
"preview" : " serve -s ./.output/public" ,
58
58
"rimraf" : " ^4.1.2" ,
59
59
"serve" : " ^14.1.2" ,
60
60
"tailwindcss" : " ^3.2.6" ,
61
+ "tsx" : " ^3.12.3" ,
61
62
"typescript" : " ^4.7.4" ,
62
63
"vercel" : " ^28.10.1" ,
63
64
"vite-plugin-pwa" : " ^0.14.1" ,
You can’t perform that action at this time.
0 commit comments