grunt-requirejs
grunt-requirejs copied to clipboard
use the symlinked virtual path instead of systems real path
when im trying to build an app with dependencies linked relative out of an symlinked directory, r.js uses the current absolute system path instead of the virtual path.
Folder Structure:
/
|-libraries
| |-jquery
| |-bootstrap
| |-requirejs
|-web
| |-www_app1
| |-www_app2
| |- webroot -> /coding/app/myapp
| |- lib -> /libraries/
|-coding
| |-app
| |-myapp
| |-mycode.js
| |-Gruntfile.js
building out of "/web/www_app2/webroot/" with a path set to an relative upper folder like "../lib/" wont work, because "grunt-requirejs" or "r.js" resolve the current dir as a absolute system path.
"../" in "/web/www_app2/webroot/" would go straight to "/coding/app/" instead of "/web/www_app2/"