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
  • #1487
Closed
Open
Issue created Feb 06, 2017 by Administrator@rootContributor

Parameter "homepage" in package.json

Created by: aaronplanell

Hi,

I miss an explanation at the documentation about the parameter "homepage" in package.json, and it is very useful for making buildings.

For instance, I had a problem because the index.html file pointed to "/static/js/...js" and that's is correct if we release the application in the root folder, but if you have various static developments in the same machine using the same Apache Server you have a problem.

I configured package.json with:

  "homepage": "."

That made that instead of using absolute paths we use relative paths in the current folder. What I mean: "./static/js/...js"

I think that this information will be useful to other developers.

Thanks a lot for your work!!!

Assignee
Assign to
Time tracking