-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
image urls relative to page not js #193
Comments
Hi, i have the same issues. Are there any solutions? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried it out on a css file containing links to images, but it seems the images try to get loaded relative to the current page and not the js file it loads from.
For example
style.css contains link to image.png. You embed and put in file.js with the r.js optimizer. Now you access www.example.com/foo/bar which loads up the file.js from media.example.com/file.js
The request for image.png is going to www.example.com/foo/image.png and not media.example.com/image.png which is where file.js (and all the other statics) are hosted.
The text was updated successfully, but these errors were encountered: