Fonts have wrong relative paths when built for relative paths.
Created by: Ferezoz
Is this a bug report?
Yes
Steps to Reproduce
-
install dependencies:
npm install --save bootstrap
npm install --save font-awesome
-
import styles to
index.js
:import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../node_modules/bootstrap/dist/css/bootstrap-theme.min.css';
import '../node_modules/font-awesome/css/font-awesome.min.css';
-
configure build for relative paths: add
"homepage": ".",
topackage.json
-
build:
npm run build
Expected Behavior
On static/css/main.XXXXXX.css
fonts paths should have for example:
../media/glyphicons-halflings-regular.XXXXXXX.woff
or
../media/fontawesome-webfont.XXXXXXX.woff
Actual Behavior
On static/css/main.XXXXXX.css
fonts paths have for example:
./static/media/glyphicons-halflings-regular.fa277232.woff
or
./static/media/fontawesome-webfont.fee66e71.woff