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
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
module tonuxt.config.js
:
modules: [
'@nuxtjs/icon'
]
- Create
static/icon.png
- Recommended to be square png and >=
512x512px
- To customize path you can use
iconSrc
option (can be relative/absolute path or URL).
- Recommended to be square png and >=