This is far beyond my knowledge .. I transferred the rails 3 application from Bootstrap 2 to Bootstrap 3. I downloaded Bootstrap 3 and FontAwesome, putting them in my resource folder. Then I tried to change the font path. I change @FontAwesomePath to font-awesome / variables.less several times, however it still does not point to the correct path. (I put the font files in. / App / assets / fonts / font -awesome /)
@FontAwesomePath: "fonts/font-awesome"
This is normal, because I saw that the line below this is the cdn path to the font files:
//@FontAwesomePath: "//netdna.bootstrapcdn.com/font-awesome/3.2.1/font"; // for referencing Bootstrap CDN font files directly
I will uncomment this line, everything seems beautiful. The compiled css file loads the font from cdn and all the icons are displayed.
Then I delete this line, again trying to redirect @FontAwesomePath to the local server again. STRANGE thing happened! No matter what I did, the compiled css file points to the CDN path! I tried to clear the browser cache, restart the rails server (I used the rails server development mode), even to load the site from other computers, nothing changes. He insists that the point @FontAwesomePath on the CDN path is not even where url exists in the entire application code! I can only imagine that in a smaller compiler there is some kind of variable cache. Can someone tell me what happened inside this? It drove me crazy.
edit: I use less gem (v 2.3.2), which includes lesscss v 1.3.3.
source share