-
Notifications
You must be signed in to change notification settings - Fork 60
Relative urls are not fixed in bundle #122
Comments
Tried setting
|
|
Ah, so basically when I'm at But I still wonder why it's not simply using |
No when your public folder is |
For some reason the CSS is not injected on my local machine, with the same build steps. 👻 But setting rootURL to |
I've just run into this myself... I have a nodejs server that practically any url you request returns the root I noticed the following
I'm using
when it fails to load it's using the following path:
I tried setting Thoughts? |
Did you also set |
@jgillich I already have the my current work-around is to manually load the font-awesome manually in my html file :( |
@guybedford This is a very important statement which should be in the config docs:
Still I have problems with the rewriting. I now create a bundle and put it in Setting Recapping my folder structure...
Getting a setup to work where your application is not in the root folder of the webserver seem to be a huge problem. |
My browser reads all js, css and images from In my config I have "baseURL": "public",
"rootURL":"./public/" and it works fine for absolute urls (image backgrounds, fonts and imports starting with '/'). If you set an absolute path to |
I use font-awesome, which works well in development when no bundle is used. However, with a bundle:
/doc/faq
/app
Now, the expected font url is
/app/jspm_packages/npm/font-awesome...
But it actually is:
jspm_packages/npm/font-awesome...
, which resolves to/doc/faq/jspm_packages/..
and therefore fails to load.The text was updated successfully, but these errors were encountered: