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

Javascript Files Getting Skipped #341

Closed
bcainc opened this issue Apr 23, 2024 · 3 comments
Closed

Javascript Files Getting Skipped #341

bcainc opened this issue Apr 23, 2024 · 3 comments

Comments

@bcainc
Copy link

bcainc commented Apr 23, 2024

Why is this plugin skipping all the "hoisted.12345.js" files that Astro creates?

@NikolaRHristov
Copy link
Member

Maybe they're already compressed at their maximum limit and couldn't be compressed more. We check for that and if the file has a larger file size after compression we don't write to it.

@NikolaRHristov
Copy link
Member

Passed: async ({ Before, Buffer }) =>
Before > _Buffer.byteLength(Buffer.toString()),

@bcainc
Copy link
Author

bcainc commented May 1, 2024

Thank you. I think that is the case after spending more time with this ... files are silently excluded from the log output if they're already at maximum compression.

@bcainc bcainc closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants