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

[eleventy-plugin-compress] Errors on files created via addPassthroughCopy, invalid output #43

Open
justinfagnani opened this issue Aug 27, 2023 · 1 comment

Comments

@justinfagnani
Copy link

I'm getting errors using eleventy-plugin-compress on a fairly simple config that uses addPassthroughCopy() for some CSS and
images:

 11:42:06 AM -> Icons: Error: ENOENT: no such file or directory, open '/Users/justin/Projects/justinfagnani.com/packages/content/site/css/prism-okaidia.css'
Error: ENOENT: no such file or directory, open '/Users/justin/Projects/justinfagnani.com/packages/content/site/css/prism-okaidia.css' 💥
 11:42:06 AM -> Icons: Start to compress "site/css/prism-okaidia.css" file 🆙
 11:42:06 AM -> Icons: Error: ENOENT: no such file or directory, open '/Users/justin/Projects/justinfagnani.com/packages/content/site/css/styles.css'
Error: ENOENT: no such file or directory, open '/Users/justin/Projects/justinfagnani.com/packages/content/site/css/styles.css' 💥
 11:42:06 AM -> Icons: Start to compress "site/css/styles.css" file 🆙

An addition to the errors, the plugin still writes a .br file, but it's empty, causing the files to fail to load in the browser.

@Olezhka-web
Copy link
Contributor

Hello @justinfagnani. Thank you for contacting us.

Could you write more information ?

  • your OS (Windows/Linux/Mac)
  • eleventy and eleventy-plugin-compress versions
  • Maybe you can give your eleventy.js file?
  • Did you use anything special in the styles? Have you noticed exactly when this situation occurs or what can affect it?

I have not been able to reproduce this situation yet.

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

2 participants