computmaxer / karma-jspm

Other
74 stars 50 forks source link

proxies configuration option since 1.0.0 no longer works (and I don't know how to solve it via `System.config({ baseURL: '/some/path' }` ) #13

Closed andreasgrimm closed 10 years ago

andreasgrimm commented 10 years ago

as our jspm_packages don't reside in the project root but in ./front/main/jspm_packages/, we not only used the config option ...

jspm: {
        config: '/front/main/config.js',
        packages: '/front/main/jspm_packages/'
...

... but used as well the proxies config option:

proxies: {
      '/jspm_packages/': '/base/front/main/jspm_packages/',
      '/lib/': '/base/front/main/lib/'
    }

now since 1.0.0 without (functional) proxies option, I don't know how I'd do the configuration to get it working again. maybe you can give us a hint.

maxwellpeterson-wf commented 10 years ago

Hmm I see. Can you try this:

proxies: {
      '/base/jspm_packages/': '/base/front/main/jspm_packages/',
      '/base/lib/': '/base/front/main/lib/'
    }
andreasgrimm commented 10 years ago

awesome, that worked. thanks a lot!

maxwellpeterson-wf commented 10 years ago

great! no problem