1.0.2 • Published 5 years ago
gulp-replace-placeholder-image v1.0.2
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