gulp-lqip

0.0.5 • Public • Published

gulp-loop-files

A Gulp task for looping through a gulp project and calling a task on each item. Inspired by gulp-inline-image-html.

Hacked from gulp-inline-image

Usage

var gulp = require('gulp');
var loop = require('gulp-loop-files');
var lqip = require('gulp-lqip');

gulp.task('default', function () {
  gulp.src('src/**/*.html')
    .pipe(loop('src', lqip))  // takes in the directory to use as the root when looking for images
    .pipe(gulp.dest('dest/'));
})

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-lqip

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • bj