1.0.0-alpha.4 • Published 7 months ago
@hidoo/gulp-plugin-image-placeholder v1.0.0-alpha.4
@hidoo/gulp-plugin-image-placeholder
Plugin that add image of placeholder for gulp.
Installation
$ npm install --save-dev gulp@next @hidoo/gulp-plugin-image-placeholderUsage
import { src, dest, task } from 'gulp';
import imagePlaceholder from '@hidoo/gulp-plugin-image-placeholder';
task('placeholder', () =>
src('/path/to/src').pipe(imagePlaceholder()).pipe(dest('/path/to/dest'))
);Supported formats
- PNG
- JPEG
- GIF
- SVG
API
imagePlaceholder
return placeholder image.
Parameters
optionsObject option (optional, default{})
Examples
import { src, dest, task } from 'gulp';
import imagePlaceholder from '@hidoo/gulp-plugin-image-placeholder';
task('placeholder', () =>
src('/path/to/src')
.pipe(
imagePlaceholder({
append: false,
suffix: 'placehold',
verbose: true
})
)
.pipe(dest('/path/to/dest'))
);Returns DestroyableTransform
Test
$ pnpm testLicense
MIT
1.0.0-alpha.4
7 months ago
1.0.0-alpha.3
8 months ago
1.0.0-alpha.2
9 months ago
1.0.0-alpha.1
2 years ago
1.0.0-alpha.0
2 years ago
0.19.0
5 years ago
0.18.0
5 years ago
0.17.0
5 years ago
0.16.0
5 years ago
0.15.0
6 years ago
0.14.1
6 years ago
0.14.0
6 years ago
0.13.0
6 years ago
0.12.0
6 years ago
0.11.0
6 years ago
0.10.0
7 years ago
0.9.0
7 years ago
0.8.4
7 years ago
0.8.3
7 years ago
0.8.2
7 years ago
0.8.1
7 years ago
0.8.0
7 years ago
0.7.0
7 years ago
0.6.2
7 years ago
0.6.1
7 years ago
0.6.0
7 years ago