Skip to content

krasimir/gulp-coloor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-coloor

Gulp plugin for Coloor image preloading utility.

Installation

npm i gulp-coloor -D

Usage

var gulp = require('gulp');
var coloor = require('gulp-coloor');

gulp.task('decorate-html', function() {
  gulp.src('src/*.*') // your html-ish files
    .pipe(coloor({
      sizeW: 3, // 3px width of the image preview. The height is calculated automatically.
      images: [__dirname + '/photos'] // location of the image files
    }))
    .pipe(gulp.dest('./dist/'));
});

gulp.task('default', ['decorate-html']);

About

Gulp plugin for Coloor (image preloading utility)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published