Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images problem after renaming or moving #501

Open
abumalick opened this issue Apr 10, 2016 · 0 comments
Open

images problem after renaming or moving #501

abumalick opened this issue Apr 10, 2016 · 0 comments

Comments

@abumalick
Copy link

Hello,
Thanks for your work.
I had a problem when I was moving images or copying them. It was not being copied, or it was copied with its old name. It quite bored me.
The problem comes from the cache.
It was fixex fallowinf this post :
http://stackoverflow.com/questions/21532903/strange-images-issue-with-gulp-js
using gulp-newer :

npm install gulp-newer --save-dev
and int gulpfile:

gulp.task('images', () => {
  return gulp.src('app/images/**/*')
    .pipe($.newer('dist/images'))
    .pipe($.imagemin({
      progressive: true,
      interlaced: true,
      // don't remove IDs from SVGs, they are often used
      // as hooks for embedding and styling
      svgoPlugins: [{cleanupIDs: false}]
    }))
    .pipe(gulp.dest('dist/images'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant