gti

gulp-to-ico

Gulp plugin to combine multiple .png files into a single .ico file.

Showing:

Popularity

Downloads/wk

90

GitHub Stars

4

Maintenance

Last Commit

4yrs ago

Contributors

2

Package

Dependencies

3

Size (min+gzip)

35.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

status

Gulp wrapper for to-ico.

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-to-ico

Information

Packagegulp-to-ico
Description Combine multiple .png files into a single .ico file.
Node Version >= 4

Usage

var ico = require('gulp-to-ico');

gulp.task('favicon', function() {
  return gulp.src('./img/favicon/*.png')
    .pipe(ico('favicon.ico'))
    .pipe(gulp.dest('./dist/'));
});

To specify cwd, path and other vinyl properties, gulp-to-ico accepts Object as first argument:

var ico = require('gulp-to-ico');

gulp.task('scripts', function() {
  return gulp.src(['./img/favicon/16.png', './img/favicon/32.png'])
    .pipe(ico({ path: 'favicon.ico', stat: { mode: 0666 }}))
    .pipe(gulp.dest('./dist/'));
});

You can pass options to the underlying to-ico plugin as a second parameter.

var ico = require('gulp-to-ico');

gulp.task('favicon', function() {
  return gulp.src('./img/favicon/*.png')
    .pipe(ico('favicon.ico', { resize: true, sizes: [16, 24, 32, 64] }))
    .pipe(gulp.dest('./dist/'));
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial