patternfly-react-seed icon indicating copy to clipboard operation
patternfly-react-seed copied to clipboard

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

Open xgp opened this issue 3 years ago • 0 comments

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?

xgp avatar Jan 19 '22 19:01 xgp