Renaming your assets after compilation
When deploying to S3 you can gzip your files ahead of time so they are served as gzipped.
This is a quick hack to revert files that were gzipped to have their original extension:
find dist/ -name "*.gz" -exec sh -c 'mv "{}" `echo "{}" | sed s/\.gz$//` ' \;
Something that is integrated into your build tool would be more advisable but this gets the job done.
Written by Matt Crinklaw-Vogt
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sed
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#