cloudchen / grunt-template-jasmine-requirejs

RequireJS template for grunt-contrib-jasmine task
111 stars 97 forks source link

Fix path issues 2 - src may be relative #81

Open lukeapage opened 9 years ago

lukeapage commented 9 years ago

@cloudchen sorry I messed up with my previous P.R. In some cases it made it worse. I've taken another look at this to make a better fix...

if src is relative and baseDir is absolute then path.relative can give strange results. We need to normalise both the paths to file paths in order to compare them correctly with relative.