This module is not yet compatible with Nuxt 3
Head over to v2.nuxt.com

nuxt-png-to-ico

Nuxt module for auto generating favicons

nuxt-png-to-ico

npm versionnpm downloadsGithub Actions CICodecovLicense

Nuxt.js module for auto generating favicons

  • This modules will generate favicon.ico from your .png image

📖 Release Notes

Setup

  1. Add nuxt-png-to-ico dependency to your project
yarn add -D nuxt-png-to-ico # or npm install --save-dev nuxt-png-to-ico
  1. Add nuxt-png-to-ico to the buildModules section of nuxt.config.js
// prepare input and output path
const inputIconFilePath = resolve(__dirname, './static/icon.png')
const outputIconFilePath = resolve(__dirname, './static/favicon.ico')

{
  buildModules: [
    [
      'nuxt-png-to-ico',
      {
        /* module options */

        inputIconFilePath,
        outputIconFilePath
      }
    ]
  ]
}

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

Thank you nice project

License

MIT License

Copyright (c) b5710546232 [email protected]