Skip to content

@url import for fonts makes relative requests #113

Closed
@haf

Description

@haf

I have a piece of code:

@font-face {
  font-family: 'Roboto Slab Light';
  src: url('../fonts/RobotoSlab-Light.ttf');
}

That gets translated to [hash].ttf; now, because I'm using the history-API, the request to the ttf becomes for example accounts/[hash].ttf where hash is a hex-string. Can I make the loader output paths that are absolute? (if I make them absolute in the css, they are ignored like the docs say)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions