-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Add gatsby-compression-plugin. #2913
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
Conversation
A plugin for gziping assets.
|
Deploy preview ready! Built with commit 75aea6f |
|
Deploy preview ready! Built with commit 75aea6f |
|
Deploy preview ready! Built with commit 6d6ca92 |
|
Nice! Should this also work on non-webpack handled assets e.g. images generated by gatsby-plugin-sharp? Perhaps go through files and see which ones don't have gz and gzip them too? |
|
|
||
| # Nginx | ||
|
|
||
| If your using nginx you can use `gzip_static on;` to serve your gzipped assets, here's a full example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hbowden you’re
Also, this is rad, nice work.
|
Deploy preview failed. Built with commit a2f1624 https://app.netlify.com/sites/using-glamor/deploys/5a0b0379a6188f349996adcb |
|
Thanks for the suggestions, I'll update the pull request. About the failed deploy preview, it seemed to be working before the merge, I'll try to figure out whats broken. Is there a command to run the deploy preview locally for testing? Also I'll look into gzipping the assets created by |
|
The deploy preview stuff is in bad shape and is being replaced soon so just ignore it for now :-( |
|
@hbowden would love to see this finished up! |
|
Please refile a new PR if you get to it! |
A plugin for gzipping assets.