question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing some file in my dist folder when using imagemin

See original GitHub issue

Hello,

I use a rather classic gulp / cache / imagemin workflow:

gulp.task('cordova:resources', function() {
  return gulp.src('resources/**')
    .pipe($.cache($.imagemin({
      optimizationLevel: 3,
      progressive: true,
      interlaced: true
    })))
    .pipe(gulp.dest(path.join(conf.paths.tmp, 'resources')))
    .pipe($.size());
});

But with this, some file are not copied to the dest folder?

When removing the $.cache(), everything works well. If I use their file name directly instead instead of a glob, it also works (after clearing the cache)…

Any ideas?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
sinediedcommented, Mar 16, 2016

I’ll try to wrap this change and a unit test in a PR then 😃

0reactions
shinnncommented, Mar 16, 2016

return file.contents.toString('utf8') + file.path;

Yes, we’re trying include the file path to key by default. https://github.com/jgable/gulp-cache/issues/51#issuecomment-177869896

We’d be grateful if you could create a pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing files when copying from src to dist? - Stack Overflow
They files still missed? Didn´t copy any files at all? I believe that would help posting the folder structure where these files are...
Read more >
gulp-imagemin is missing some nested folders. #58 - GitHub
I got this old project, with lots of images scattered under some sub folders, like: js styles images a.jpg b.jpg images c.png index...
Read more >
Use Imagemin to compress images - web.dev
Uncompressed images bloat your pages with unnecessary bytes. Run Lighthouse to check for opportunities to improve page load by compressing ...
Read more >
rollup-plugin-imagemin - npm Package Health Analysis - Snyk
We found a way for you to contribute to the project! Looks like rollup-plugin-imagemin is missing a security policy. You can connect your...
Read more >
Gradle deploy fails while running imagemin:dist
Hi I am trying to install Openspecimen on CentOS 5.8. While issuing the command deploy, it exits with following error: Done, without errors....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found