@denysvuika/ionic-gulp-images-copy
v0.1.0
Published
Gulp task for Ionic projects to copy image resources to a build directory
Downloads
2
Maintainers
Readme
Images Copy Task
Copy image resources to build directory.
Installing
npm install @denysvuika/ionic-gulp-images-copy --save-dev
API
copyImages([options])
Returns a stream of Vinyl files that can be piped.
Available options:
- src (String|Array) Glob or array of globs (What's a glob?) matching HTML source files. Default:
'app/assets/images/**/*'
. - dest (String) Output path for the HTML files. Default:
'www/build/images'
. - base (String) Base path. Default:
'app/assets/images'
Example
const copyImages = require('@denysvuika/ionic-gulp-images-copy');
// use defaults
gulp.task('images', copyImages);
// or customize
gulp.task('images', () => {
return copyImages({
src: 'app/assets/images/**/*',
dest: 'www/build/images',
base: 'app/assets/images'
});
});