Skip to content

Conversation

@hbowden
Copy link

@hbowden hbowden commented Nov 14, 2017

A plugin for gzipping assets.

@gatsbybot
Copy link
Collaborator

Deploy preview ready!

Built with commit 75aea6f

https://deploy-preview-2913--gatsbygram.netlify.com

@gatsbybot
Copy link
Collaborator

Deploy preview ready!

Built with commit 75aea6f

https://deploy-preview-2913--using-drupal.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Nov 14, 2017

Deploy preview ready!

Built with commit 6d6ca92

https://deploy-preview-2913--gatsbygram.netlify.com

@KyleAMathews
Copy link
Contributor

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.
Copy link
Contributor

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.

@KyleAMathews
Copy link
Contributor

Deploy preview failed.

Built with commit a2f1624

https://app.netlify.com/sites/using-glamor/deploys/5a0b0379a6188f349996adcb

@hbowden
Copy link
Author

hbowden commented Nov 16, 2017

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 gatsby-plugin-sharp and dynamic imports which are not currently supported webpack/compression-webpack-plugin#79.

@KyleAMathews
Copy link
Contributor

The deploy preview stuff is in bad shape and is being replaced soon so just ignore it for now :-(

@ghost ghost assigned KyleAMathews Dec 14, 2017
@ghost ghost added the review label Dec 14, 2017
@KyleAMathews
Copy link
Contributor

@hbowden would love to see this finished up!

@ghost ghost removed the review label Feb 6, 2018
@KyleAMathews
Copy link
Contributor

Please refile a new PR if you get to it!

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

Successfully merging this pull request may close these issues.

5 participants