javascript - How to handle relative pathing across multiple modules and stylesheets? -


backstory: i'm serving application deep inside separate independent application purpose of integrating application's feature set.

one of "features" offers allow access "extension" creating via url path like: http://localhost/path/to/my/extension

so of css , js need using /path/to/my/extension base url whenever using things background-image: url(/my/fancy/img.svg) module paths /jspm_modules/repo/some_system_module@v1.js.

any requests hit proper path like: /path/to/my/extension/some/thing i'm able handle want because can control request , point @ right resource server-side.

what i'm struggling things es6-module-loader , embedded style sheets use relative pathing format.

sorry if question hard understand, i'm not quite sure how ask right haven't had face issue before. feel free edit, leave comments asking clarification, etc. encourage need learn since seems (might be?) common.

some failure messages since resources not pointed extension path


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -