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
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit c2cfbb5

Browse files
committed
changed readme
1 parent 2eec477 commit c2cfbb5

File tree

1 file changed

+43
-14
lines changed

1 file changed

+43
-14
lines changed

‎readme.md

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -439,21 +439,50 @@
439439
};
440440
441441
module.exports = () =>
442-
withPWA({
443-
// ...
444-
445-
pwa: {
446-
disable: !isProd,
447-
subdomainPrefix: proces.env.LINK_PREFIX,
448-
dest: 'public',
449-
navigationPreload: true,
450-
},
451-
});
442+
withManifest(
443+
withPWA({
444+
// ...
445+
446+
// service worker
447+
pwa: {
448+
disable: !isProd,
449+
subdomainPrefix: proces.env.LINK_PREFIX,
450+
dest: 'public',
451+
navigationPreload: true,
452+
},
453+
454+
455+
// manifest
456+
manifest: {
457+
/* eslint-disable @typescript-eslint/camelcase */
458+
output: 'public',
459+
short_name: FOLDER,
460+
name: FOLDER,
461+
start_url: `${LINK_PREFIX}/`,
462+
background_color: THEME_COLOR,
463+
display: 'standalone',
464+
scope: `${LINK_PREFIX}/`,
465+
dir: 'ltr', // text direction: left to right
466+
theme_color: THEME_COLOR,
467+
icons: [
468+
{
469+
src: `${LINK_PREFIX}${ICON_192_PATH}`,
470+
sizes: '192x192',
471+
type: 'image/png',
472+
},
473+
{
474+
src: `${LINK_PREFIX}${ICON_512_PATH}`,
475+
sizes: '512x512',
476+
type: 'image/png',
477+
},
478+
],
479+
},
480+
})
481+
);
452482
```
453-
3. add `public/manifest.json` similar to the one in the example setup
454-
4. add `public/icons` folder and include corresponding icon files in the folder
455-
5. copy `ManifestHead.tsx` from the example setup `src/features/head`
456-
6. import `ManifestHead` in pages
483+
3. add `public/icons` folder and include corresponding icon files in the folder
484+
4. copy `ManifestHead.tsx` from the example setup `src/features/head`
485+
5. import `ManifestHead` in pages
457486
458487
### [Typeorm and Sql.js](https://typeorm.io/#/)
459488
1.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /