JSPM

  • Created
  • Published
  • Downloads 3917
  • Score
    100M100P100Q117278F
  • License MIT

Package Exports

  • @nuxtjs/manifest

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nuxtjs/manifest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Manifest

Adds Web App Manifest with no pain.

  • Creates static/manifest.json
  • Adds <link rel=manifest> to pages if not exits.
  • Adds <link rel=favicon> to pages if not exits.
  • Adds <meta name=description> to pages if not exits.
  • Adds <meta name=theme-color> to pages if not exits.
  • Adds <html lang=> lang to pages if not exits.
  • Adds title to pages if not exits.

Setup

  • Add @nuxtjs/manifest dependency using yarn or npm to your project
  • Add @nuxtjs/manifest module to nuxt.config.js:
  modules: [
   '@nuxtjs/manifest'
  ]
  • Add static/icon.png for your app icon.
  • Add additional options to nuxt.manifest to override defaults:
  manifest: {
      name: 'My Awesome App',
      dir: 'rtl'
  }
  • Add static/manifest*.json to .gitignore file.