3.0.0 • Published 3 years ago
broccoli-favicon v3.0.0
broccoli-favicon
Takes a single favicon.png
and outputs various sizes and file formats for favicons for different platforms and devices. Uses favicons
, see that projects documentation for details on the full range of support favicon generation.
Usage
Default configuration values are show below:
import Favicon from "broccoli-favicon";
const outputNode = new Favicon(nodeWithFaviconImage, {
iconPath: "favicon.png", // The path to the source image in 'nodeWithFaviconImage'
onSuccess(htmlArray, rawObject) {
// this method is called once the generator finishes;
// the first parameter is an array of strings containing
// the appropriate HTML to use the generated icons
// and the second argument is a raw object containing serialized html objects
},
// The favicons config object is passed directly to the underlying `Favicons` module
// See https://github.com/haydenbleasel/favicons for details and defaults
faviconsConfig: {},
});
3.0.0
3 years ago
2.1.2
5 years ago
2.1.1
5 years ago
2.1.0
6 years ago
2.0.0
6 years ago
1.0.0
8 years ago
1.0.0-beta.2
9 years ago
1.0.0-beta.1
9 years ago
0.0.3
10 years ago
0.0.2
10 years ago