0.0.1 • Published 9 years ago
@yuheiy/gulp-debounce v0.0.1
gulp-debounce
Call a debounced function when stream flows.
Install
npm i -D @yuheiy/gulp-debounceUsage
const gulp = require('gulp')
const pug = require('gulp-pug')
const debounce = require('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
0.0.1
9 years ago