Skip to content

Wrong paths for fonts when setting homepage to "." #823

Closed
@themre

Description

@themre

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

  1. react-scripts 0.6.1 (if you haven’t ejected):
  2. node 6.3.0:
  3. npm 3.10.3:
  4. font-awesome 4.6.3
  5. Operating system: Windows 10 64-bit
  6. Browser and version: All

Usage

I import fonts like this: import 'font-awesome/css/font-awesome.css'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions