svg-sprite / gulp-svg-sprite

SVG sprites & stacks galore — Gulp plugin wrapping around svg-sprite that reads in a bunch of SVG files, optimizes them and creates SVG sprites and CSS resources in various flavours
MIT License
647 stars 43 forks source link

Can't seem to get it working #76

Closed mearleycf closed 2 years ago

mearleycf commented 6 years ago

Here's the gulp file.js:

// gulp-svg-sprite
svgSprite = require('gulp-svg-sprite');
let spriteConfig = {
  mode: {
    css: {
      render: {
        css: true
      }
    }
  }
};
gulp.task('sprites', function () {
  return gulp.src('**/.*.svg', {cwd: 'source/images'})
    .pipe(svgSprite(spriteConfig))
    .pipe(gulp.dest('source/test'));
});

// end gulp-svg-sprite

the directory is

Obviously there are more folders than that, but this is all that's relevant to now.

I've tried doing ./source/images' as well and that does not work either.

Kreeg commented 2 years ago

@mearleycf Hello! I'm closing it due to inactivity. If you still have this problem please open a new issue. Thanks