Skip to content

Can't find fonts when serving from a non-root path #126

@xgp

Description

@xgp

Use case is to take the files generated in dist/ and put them on a webserver in a non-root path.

The error I encounter when doing this is that the patternfly fonts, specified in the main.css use a url(/fonts/...) path, which forces the browser to look at the root, rather than relative to the base path.

Screen Shot 2022-01-19 at 8 50 45 PM

Is there anyway to update webpack to change this?


Jira Issue: PF-2028

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions