Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #2794
Closed
Open
Issue created Jul 14, 2017 by Administrator@rootContributor

Fonts have wrong relative paths when built for relative paths.

Created by: Ferezoz

Is this a bug report?

Yes

Steps to Reproduce

  1. install dependencies: npm install --save bootstrap npm install --save font-awesome

  2. 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';

  3. configure build for relative paths: add "homepage": ".", to package.json

  4. 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

Assignee
Assign to
Time tracking