Skip to content

Commit 2d5e472

Browse files
committed
fix(meta,manifest): set default undefined for description and author
1 parent 79322c1 commit 2d5e472

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Diff for: docs/content/en/manifest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pwa: {
2727
| --------------------------------- | --------------- | ------------------------------------------------------------ | --------------------------------------------------------------- |
2828
| `name` <sup>\*1</sup> | `String` | `package.json`'s name property | [maximum of 45 characters] |
2929
| `short_name` <sup>\*1</sup> | `String` | `package.json`'s name property | [maximum of 12 characters] |
30-
| `description` <sup>\*2</sup> | `String` | `package.json`'s description property | |
30+
| `description` <sup>\*2</sup> | `String` | `undefined` | |
3131
| `icons` <sup>\*1</sup> | `Array<Object>` | `[]` | (See the [icon module]) |
3232
| `start_url` <sup>\*1</sup> | `String` | `routerBase + '?standalone=true'` | It has to be relative to where the manifest is placed |
3333
| `display` <sup>\*1</sup> | `String` | `'standalone'` | |

Diff for: docs/content/en/meta.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ These articles will help you decide an appropriate value:
6767
- Meta: `title`
6868

6969
### `author`
70-
- Default: *npm_package_author_name*
70+
- Default: `undefined`
7171
- Meta: `author`
7272

7373
### `description`
74-
- Default: *npm_package_description*
74+
- Default: `undefined`
7575
- Meta: `description`
7676

7777
### `theme_color`

Diff for: src/manifest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function manifest (nuxt, pwa: PWAContext) {
99
const defaults: ManifestOptions = {
1010
name: process.env.npm_package_name,
1111
short_name: process.env.npm_package_name,
12-
description: process.env.npm_package_description,
12+
description: undefined,
1313
publicPath,
1414
icons: [],
1515
start_url: routerBase + '?standalone=true',

Diff for: src/meta.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export function meta (nuxt, pwa: PWAContext, moduleContainer) {
88
// Defaults
99
const defaults: MetaOptions = {
1010
name: process.env.npm_package_name,
11-
author: process.env.npm_package_author_name,
12-
description: process.env.npm_package_description,
11+
author: undefined,
12+
description: undefined,
1313
charset: 'utf-8',
1414
viewport: undefined,
1515
mobileApp: true,

Diff for: types/manifest.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface ManifestOptions {
1010
*/
1111
short_name: string,
1212
/**
13-
* Default: _npm_package_description_
13+
* Default: undefined
1414
*/
1515
description: string,
1616
/**

Diff for: types/meta.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ export interface MetaOptions extends Partial<ManifestOptions> {
5252
*/
5353
title?: string,
5454
/**
55-
* Default: _npm_package_author_name_
55+
* Default: undefined
5656
*
5757
* Meta: `author`
5858
*/
5959
author: string,
6060
/**
61-
* Default: _npm_package_description_
61+
* Default: undefined
6262
*
6363
* Meta: `description`
6464
*/

0 commit comments

Comments
 (0)