@denysvuika/ionic-gulp-images-copy

    0.1.0 • Public • Published

    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'
      });
    });

    Install

    npm i @denysvuika/ionic-gulp-images-copy

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • denysvuika