bud-favicons
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

bud.js

MIT License npm

Bud Favicons

Bud.js extension to automatically generate favicons


Installation

Install bud-favicons to your project.

Yarn:

yarn add bud-favicons --dev

npm:

npm install bud-favicons --save-dev

Configuration

bud-favicons works with zero configuration. But there is a robust and developer friendly configuration API should you need to make a modification to the provided defaults. You can see the full list of options in the favicons documentation.

Default configuration

const options = {
  logo: bud.path('resources/images/favicon.svg'),
  mode: 'webapp',
  devMode: 'webapp',
  outputPath: bud.path('public'),
  favicons: {
      icons: {
          android: true,
          appleIcon: true,
          appleStartup: true,
          favicons: true,
          windows: true,
          yandex: false,
      },
  },
};

Configuration with bud.favicons.config

You can configure favicons with the bud.favicons method:

bud.favicons.setup({
  logo: bud.path('resources/images/favicon.svg'),
});

OR

bud.favicons.setup({
  logo: bud.path('resources/images/favicon.svg'),
  mode: 'webapp',
  devMode: 'webapp',
  outputPath: bud.path('public'),
  favicons: {
      background: '#030321',
      theme_color: '#ffffff',
      icons: {
          android: true,
          appleIcon: true,
          appleStartup: true,
          favicons: true,
          windows: true,
          yandex: false,
      },
  },
});

Contributing

Contributions are welcome from everyone.

Credits

Bud Favicons is a Itineris Limited project created by Dan Lapteacru.

Full list of contributors can be found here.

License

Bud Favicons is released under the MIT License.

Package Sidebar

Install

npm i bud-favicons

Weekly Downloads

16

Version

0.0.15

License

MIT

Unpacked Size

16.3 kB

Total Files

16

Last publish

Collaborators

  • danlapteacru