Have ideas to improve npm?Join in the discussion! »

gulp-favicons

2.2.3 • Public • Published

gulp-favicons Build Status

Favicons generator for Gulp. Simple wrapper around favicons. Installed through NPM with:

npm install gulp-favicons --save-dev

Check out favicons.io for all configuration options. Example usage:

var favicons = require("gulp-favicons");
 
gulp.task("default", function () {
    gulp.src("logo.png").pipe(favicons({
        appName: "My App",
        appDescription: "This is my application",
        developerName: "Hayden Bleasel",
        developerURL: "http://haydenbleasel.com/",
        background: "#020307",
        path: "favicons/",
        url: "http://haydenbleasel.com/",
        display: "standalone",
        orientation: "portrait",
        version: 1.0,
        logging: false,
        online: false,
        html: "index.html",
        replace: true
    })).pipe(gulp.dest("./"));
});

If you need an ES5 build for legacy purposes, just require the ES5 file:

var favicons = require('gulp-favicons/es5');

To build the ES5 version, run the following and remember to require the ES5 version.

npm install -g babel-cli
babel --presets es2015 index.js --out-file es5.js

Install

npm i [email protected]

Version

2.2.3

License

ISC

Last publish

Collaborators

  • avatar
  • avatar