Skip to content

Parameter "homepage" in package.json #1487

Closed
@aaronplanell

Description

@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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions