heroku - Excluding fonts from the asset pipeline in Rails 4 -


i'm struggling firefox's cors same domain policy when using cloudfront serve assets. i've tried using font assets gem without luck.

i thought having in stylesheet:

src: url('<%= rails.application.config.local_static_url %>/belinda-webfont.eot'); 

and config value

config.local_static_url = '//mydomain.com' 

i'm keeping fonts inside app/assets/fonts folder. i'm not sure how make work, because fonts copied s3, , digest added them.

is there way of keeping fonts on heroku , serving them /assets folder?

thanks.

you can create separate files , include main layout normal <link> tag. post might helpful: http://thelazylog.com/posts/resolve-cors-fonts-issue-on-firefox-and-now-chrome-too-with-rails-assets-pipeline


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -