Skip to content
This repository has been archived by the owner on Dec 2, 2017. It is now read-only.
/ gulp-debounce Public archive

Call a debounced function when stream flows.

Notifications You must be signed in to change notification settings

yuheiy/gulp-debounce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-debounce

Call a debounced function when stream flows.

Install

npm i -D @yuheiy/gulp-debounce

Usage

const gulp = require('gulp')
const pug = require('gulp-pug')
const debounce = require('@yuheiy/gulp-debounce')
const browserSync = require('browser-sync').create()

gulp.task('html', () =>
  gulp.src('src/**/*.pug')
    .pipe(pug())
    .pipe(gulp.dest('dist'))
    .pipe(debounce(browserSync.reload, 300))
)

API

debounce(func, [wait=0])

Creates and sets a debounced function.

License

MIT

About

Call a debounced function when stream flows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published