caolan / jam

JavaScript package manager - using a browser-focused and RequireJS compatible repository
MIT License
1.5k stars 105 forks source link

baseURL return relative path #84

Open th3fallen opened 11 years ago

th3fallen commented 11 years ago

While i believe baseUrl currently returns a path relative to the package.json file the returned path is an absolute location which makes using it inside a php MVC very difficult could we add a flag or something to toggle this from absolute to relative paths?

caolan commented 11 years ago

Can you give an example of the path you provided, the path you got, and the path you'd like to get please?

th3fallen commented 11 years ago

My apologies it was a mistake on my end do have a question/problem though.

when im doing this

    require(['assets/core'], function (core) {
        core.init();
    });

why can i not do

    require(['/assets/core'], function (core) {
        core.init();
    });

that makes it extremely difficult to link to that particular file inside of a MVC