Skip to content

short_name uses package.json name by default instead of manifest name #544

@PetroSilenius

Description

@PetroSilenius

Currently if short_name is not provided in the manifest config it will default to package.json name

short_name: process.env.npm_package_name,

While docs describe this behaviour like this
The short_name (maximum of 12 characters recommended) is a short version of the app's name. It is an optional field and if not specified, the name will be used, > though it will likely be truncated.
https://pwa.nuxtjs.org/manifest#short_name

Based on docs I got the impression that the default value for short_name would be the name property in the pwa manifest but that doesn't appear to be the case.

Which one is wanted behaviour here? Should the docs be updated to match current behaviour or should the implementation be updated to match docs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions