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

How to make assets be loaded from relative paths instead of absolute paths #1348

Closed
daviddias opened this issue Jan 4, 2017 · 2 comments
Closed

Comments

@daviddias
Copy link

Hi, I'm using create-react-app and I'm not being able to figure out how to make the built version load the js and css from the relative path where the index.html gets loaded from.

My goal is to be able load the react app generated both from a domain.com or a domain.com/a/b/c without hitting reference issues.

@gaearon
Copy link
Contributor

gaearon commented Jan 4, 2017

My goal is to be able load the react app generated both from a domain.com or a domain.com/a/b/c without hitting reference issues.

This is not currently fully supported.
(Of course you can eject and fix it manually.)

Please track #1094 for workarounds and future solutions.

@gaearon gaearon closed this as completed Jan 4, 2017
@daviddias
Copy link
Author

Thank you for the pointer :)

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants