npm.io
1.0.2 • Published 7 years ago

gulp-replace-placeholder-image

Licence
MIT
Version
1.0.2
Deps
8
Size
6 kB
Vulns
1
Weekly
0

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