gulpfile.js
function makeSvgSprite() {
  var stream = gulp.src([src.icons])
    .pipe(plugins.svgmin({
      plugins: [
        { removeViewBox: false },
        { removeUselessStrokeAndFill: false },
        { removeEmptyAttrs: false },
        { removeTitle: false },
        { removeDesc: true }
      ],
      js2svg: {
        pretty: true
      }}))
    .pipe(plugins.svgstore())
    .pipe(plugins.rename({
        basename: 'sprite'
      }))
    .pipe(gulp.dest(compiled.img));
  return stream;
}
function makeSvgSprite() {
  var stream = gulp.src([src.icons])
    .pipe(plugins.svgmin({
      plugins: [
        { removeViewBox: false },
        { removeUselessStrokeAndFill: false },
        { removeEmptyAttrs: false },
        { removeTitle: false },
        { removeDesc: true }
      ],
      js2svg: {
        pretty: true
      }}))
    .pipe(plugins.svgstore())
    .pipe(plugins.rename({
        basename: 'sprite'
      }))
    .pipe(gulp.dest(compiled.img));
  return stream;
}
function makeSvgSprite ( ) { var stream = gulp . src ( [ src . icons ] ) . pipe ( plugins . svgmin ( { plugins : [ { removeViewBox : false } , { removeUselessStrokeAndFill : false } , { removeEmptyAttrs : false } , { removeTitle : false } , { removeDesc : true } ] , js2svg : { pretty : true } } ) ) . pipe ( plugins . svgstore ( ) ) . pipe ( plugins . rename ( { basename : 'sprite' } ) ) . pipe ( gulp . dest ( compiled . img ) ) ; return stream ; }
combine icon svg's into sprite
combine icon svg s into sprite