Skip to content

Dynamic public path output #232

Closed
Closed
@oleblaesing

Description

@oleblaesing

When running npm run build the index.html is compiled with prefixed / for the asset links. node_modules/react-scripts/config/webpack.config.prod.js shows me, that the / is currently hardcoded, but when I read the create-react-app source files (config/webpack.config.prod.js) the prefix is built dynamically. So where does the "hard" prefix come from and how to use the homepage property in my local package.json?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions