Skip to content

Jammit not relativizing URLs as expected #28

Description

@reefdog

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:

  1. Keep the existing path
  2. Restructure the path to maintain relative traversal to the original resource
  3. Replace it with an absolute reference to the original resource
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions