Nanotech Parading Mars

    @hidoo/gulp-plugin-svg-sprite

    0.19.0 • Public • Published

    @hidoo/gulp-plugin-svg-sprite

    Plugin that build svg sprite sheet for gulp.

    Installation

    minimal:

    $ npm install --save-dev gulp@next @hidoo/gulp-plugin-svg-sprite

    recommended:

    $ npm install --save-dev merge-stream gulp@next @hidoo/gulp-plugin-svg-sprite

    Usage

    import {src, dest, task} from 'gulp';
    import merge from 'merge-stream';
    import svgSprite from '@hidoo/gulp-plugin-svg-sprite';
    
    task('sprite', () => {
      const stream = src('/path/to/src')
        .pipe(svgSprite(options));
    
      return merge(
        stream.css.pipe(dest('/path/to/dest')),
        stream.svg.pipe(dest('/path/to/dest'))
      );
    };

    Test

    $ yarn test

    License

    MIT

    Keywords

    Install

    npm i @hidoo/gulp-plugin-svg-sprite

    DownloadsWeekly Downloads

    80

    Version

    0.19.0

    License

    MIT

    Unpacked Size

    23.8 kB

    Total Files

    9

    Last publish

    Collaborators

    • hidoo