grunt-requirejs icon indicating copy to clipboard operation
grunt-requirejs copied to clipboard

use the symlinked virtual path instead of systems real path

Open polarity opened this issue 11 years ago • 0 comments

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/"

polarity avatar Apr 08 '13 16:04 polarity