JSPM

  • Created
  • Published
  • Downloads 2659
  • Score
    100M100P100Q99462F
  • License MIT

Package Exports

  • @nuxtjs/icon

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/icon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Icon

npm npm (scoped with tag)

Automatically generates app icons and favicon with different sizes using jimp.

  • This module fills manifest.icons[] with proper paths to generated assets that is used by manifest module.
  • Source icon is being resized using cover method.

Setup

  • Add @nuxtjs/icon dependency using yarn or npm to your project
  • Add @nuxtjs/icon to modules section of nuxt.config.js
  modules: [
    // Simple usage
   '@nuxtjs/icon',
   
   // With options
   ['@nuxtjs/icon', { iconSrc: '' }],
  ]
  • Create static/icon.png. Recommended to be square png and >= 512x512px

options

iconSrc

  • Default: [srcDir]/static/icon.png

sizes

  • Default: [16, 120, 144, 152, 192, 384, 512]

Array of sizes to be generated (Square).