cloudhead/less.js — Issue #480: LESS and Titanium Desktop (breaks relative paths and loading order)
Author: lapidus
Created: 2011-11-22 13:14:47+00:00
State: open

I'm trying to use Twitter Bootstrap inside Appcelerator's Titanium Desktop.
LESS works fine outside this environment, but in it, paths break.

This is how I link to Twitter Bootstrap's LESS file:

Then Bootstrap defines nested imports like this:
@import "reset.less";

Which results in this issue inside Titanium Desktop:

Error finding /Users/exus/Desktop/Ongoing_Projects/G2_offline/dist/osx/G2_offline.app/Contents/Resources/app/app:/G2_offline/libs/twitter-bootstrap-1.3/lib/reset.less

So I tried linking to the less files directly from the top-level html. Now the files load but only some of them seem to get parsed properly (and looking in the inspector it seems the .less files are loaded after the .js file even though they are declared before?)