Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd1cdd51

Browse files
committed
changed readme
1 parent369cc62 commitd1cdd51

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎readme.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@
420420
### [PWA](https://github.com/shadowwalker/next-pwa#readme)
421421
1.
422422
```sh
423-
npm i -S next-pwa
423+
npm i -S next-pwa next-manifest
424424
```
425425
2. change`next.config.js`
426426
```js
@@ -441,6 +441,7 @@
441441
withPWA({
442442
// ...
443443
444+
// service worker
444445
pwa: {
445446
disable: !isProd,
446447
subdomainPrefix: proces.env.LINK_PREFIX,
@@ -477,9 +478,9 @@
477478
})
478479
);
479480
```
480-
4. add `public/icons` folder and include corresponding icon files in the folder
481-
5. copy `ManifestHead.tsx` from the example setup `src/features/head`
482-
6. import `ManifestHead` in pages
481+
3. add `public/icons` folder and include corresponding icon files in the folder
482+
4. copy `ManifestHead.tsx` from the example setup `src/features/head`
483+
5. import `ManifestHead` in pages
483484
484485
### Notes:
485486
1. NextJs, next-pwa, workbox are still growing their api, so this project setup will be modified in the future for easier setup.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp