Skip to content

ItinerisLtd/bud-favicons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bud.js

MIT License npm

Bud Favicons

Bud.js extension to automatically generate favicons


Installation

Install @itinerisltd/bud-favicons to your project.

Yarn:

yarn add @itinerisltd/bud-favicons --dev

npm:

npm install @itinerisltd/bud-favicons --save-dev

Configuration

At the top of your bud.config.ts file, import the extension:

import BudFavicons from "@itinerisltd/bud-favicons";

Then, add the extension to your Bud instance:

bud
    .use(BudFavicons);

@itinerisltd/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.setup

You can configure favicons with the bud.favicons.setup 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •