1000ch / gulp-image

Optimize PNG, JPEG, GIF, SVG images with gulp task.
http://bit.ly/we-should-optimize-images
MIT License
223 stars 22 forks source link

Mistake in readme.me svgo options #34

Closed zibot closed 7 years ago

zibot commented 7 years ago

Hi,

in readme.md

gulp.task('image', function () {
  gulp.src('./fixtures/*')
    .pipe(image({
      svgo: {
        enable: ['removeRasterImages'], 
        disable: ['removeDoctype']
      }
    }))
    .pipe(gulp.dest('./dest'));
});

must be

gulp.task('image', function () {
  gulp.src('./fixtures/*')
    .pipe(image({
      svgo: {
        enables: ['removeRasterImages'], 
        disables: ['removeDoctype']
      }
    }))
    .pipe(gulp.dest('./dest'));
});

enables: ['removeRasterImages'], disables: ['removeDoctype']

1000ch commented 7 years ago

It should be so as you say, but must not be :) I found this mistake and related conflict is resolved with #33.