Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the package.json homepage attribute #18783

Open
4 tasks done
claytron5000 opened this issue Nov 26, 2024 · 1 comment
Open
4 tasks done

Support the package.json homepage attribute #18783

claytron5000 opened this issue Nov 26, 2024 · 1 comment

Comments

@claytron5000
Copy link

Description

As a developer, I would like to designate the path through which all asset requests go. For example, if I deploy the app to an unknown subfolder, I'd like to add "homepage": "./", thus making all asset paths relative to the current path: "./asset/resource-name.css".

Suggested solution

The entry to the initial assets is written into the index.html file. My rough assumption is we could prepend the homepage string to those asset paths. I'm sure this is not the whole story, since there are cascading requests to get more assets.

Alternative

No response

Additional context

No response

Validations

@sapphi-red
Copy link
Member

I guess base: './' is what you are looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants