You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restructure the path to maintain relative traversal to the original resource
Replace it with an absolute reference to the original resource
Or something?
I'm genuinely unsure of correct behavior, as this Jammit issue acknowledges the problem and points to public_root as the answer, but I was unable to make public_root work. My guess is that the out-of-Rails use case isn't well tended.
Trying to resolve that led to fa09665 as a prerequisite.
The text was updated successfully, but these errors were encountered:
The impact of #28 has been hidden since I was already inlining the logo and font files. Kicking out the crutches to force me to figure out the fix.
* Use non-embedded Fontello (will let Jammit data-uri them)
* Use non-embedded logo images (will let Jammit data-uri them)
* Give logo files explicit names
reefdog
changed the title
Jammit not relativizing URLs as expecting
Jammit not relativizing URLs as expected
Oct 30, 2015
Simply can't get it working correctly with relative paths outside of Rails.
* Inline datauri-able assets
* Disable relative path rewriting
* Shuffle contents of `fontello` directory (and update references) so that `fontello/fonts` can be cleanly dropped into `dist` over on the DC side
* Remove `-datauri`-suffixed CSS files, as they're all datauri now
Basically giving up on #28
I'm genuinely uncertain how Jammit is supposed to be acting right now.
My CSS contains local references like
url('../font/fontello.eot?95329667')
which, when compiled, are converted to reference my local filesystem structure with a weirdly part-relative / part-absolute syntax, e.g.url(../Users/justin/Projects/documentcloud-pages/src/css/vendor/fontello/font/fontello.eot?1433297684)
.I would expect it to either:
I'm genuinely unsure of correct behavior, as this Jammit issue acknowledges the problem and points to
public_root
as the answer, but I was unable to makepublic_root
work. My guess is that the out-of-Rails use case isn't well tended.Trying to resolve that led to fa09665 as a prerequisite.
The text was updated successfully, but these errors were encountered: