1.0.2 • Published 5 years ago

gulp-replace-placeholder-image v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

gulp-replace-image-placeholder

Release all .jpg/.jpeg/.png/.gif/.svg to placeholder image, others will be copied by default.

Installation

$ npm i --save-dev gulp-replace-image-placeholder

Supported formats

  • PNG
  • JPEG
  • GIF
  • SVG

imagePlaceholder

return placeholder image.

Examples

import imagePlaceholder from 'gulp-plugin-image-placeholder';
//or
imagePlaceholder from 'gulp-plugin-image-placeholder'.default;

task('placeholder', () => src('/path/to/src/*')
  .pipe(imagePlaceholder())
  .pipe(dest('/path/to/dest'))):

License

MIT