Re: gzip fonts with asset pipeline

110 views
Skip to first unread message

Frederick Cheung

unread,
May 13, 2013, 4:45:38 AM5/13/13
to rubyonra...@googlegroups.com
On Monday, May 13, 2013 7:50:41 AM UTC+1, yuval....@capriza.com wrote:
I'm using asset pipeline for fonts (app/assets/fonts).
asset pipeline does process the fonts directory when I precompile, but it is not creating a gzip version for the font files (while it is creating ones for the JS/css files).
I'm using apache + passanger for serving rails.
Is there a way to make asset pipeline create gzip file for the font files?


As far as I can tell this is just hard coded into action pack:


If I remember correctly, it's quite tricky to get apache to use the pre-gzipped files - you might find it sufficient to have apache gzip them on the fly

Fred 
Reply all
Reply to author
Forward
0 new messages