https://github.com/krasimir/gulp-coloor
Gulp plugin for Coloor (image preloading utility)
https://github.com/krasimir/gulp-coloor
Last synced: 8 months ago
JSON representation
Gulp plugin for Coloor (image preloading utility)
- Host: GitHub
- URL: https://github.com/krasimir/gulp-coloor
- Owner: krasimir
- License: mit
- Created: 2016-04-02T02:41:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-02T03:42:22.000Z (over 9 years ago)
- Last Synced: 2025-02-17T15:50:08.057Z (8 months ago)
- Language: HTML
- Size: 424 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-coloor
Gulp plugin for [Coloor](https://github.com/krasimir/coloor) image preloading utility.
## Installation
`npm i gulp-coloor -D`
## Usage
```js
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']);
```