You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out this was the cause of homepage: '.' in package.json. I wanted this since I don't have yet specified final website URL and I wanted it to send to someone to check it locally (run index.html or to put on some non-root folder on some host). Obviously this won't work. Any other solution?
Yeah, this is not really officially supported as we found a few similar issues with it. If you want to keep using that workaround, you’ll need to use public folder for any assets and manage them manually instead so that Webpack doesn’t get confused about paths.
Alternatively you could investigate what it would take to support . officially and make a PR fixing those issues. Maybe with some tweaks to configuration it would be possible.
Description
From 0.6.0 on I'm experience this bug, where links from Fontawesome are broken. This goes for fonts, that are referenced in the Fontawesome CSS.
Expected behavior
Link to fonts should be e.g.
build/static/media/fontawesome-webfont.1dc35d25.ttf
Actual behavior
Link in css produces: build/static/css/static/media/fontawesome-webfont.1dc35d25.ttf. This goes for TTF, WOFF and WOFF2.
Environment
react-scripts 0.6.1
(if you haven’t ejected):node 6.3.0
:npm 3.10.3
:font-awesome 4.6.3
Usage
I import fonts like this:
import 'font-awesome/css/font-awesome.css'
The text was updated successfully, but these errors were encountered: