Skip to content
Browse files

Updated template for bootstrap_and_overrides.less for absolute paths …

…for Font Awesome to work seamlessly with fix from pull request #251
  • Loading branch information...
1 parent 61baa89 commit 15c212a1210a96c62061d2e977ecd3e54d88df5a @erbmicha erbmicha committed
Showing with 7 additions and 5 deletions.
  1. +7 −5 lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less
View
12 lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less
@@ -11,11 +11,13 @@ body {
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');
// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
-@fontAwesomeEotPath: asset-path('fontawesome-webfont.eot');
-@fontAwesomeWoffPath: asset-path('fontawesome-webfont.woff');
-@fontAwesomeTtfPath: asset-path('fontawesome-webfont.ttf');
-@fontAwesomeSvgzPath: asset-path('fontawesome-webfont.svgz');
-@fontAwesomeSvgPath: asset-path('fontawesome-webfont.svg');
+// Note: If you use asset_path() here, your compiled boostrap_and_overrides.css will not
+// have the proper paths. So for now we use the absolute path.
+@fontAwesomeEotPath: '/assets/fontawesome-webfont.eot';
+@fontAwesomeWoffPath: '/assets/fontawesome-webfont.woff';
+@fontAwesomeTtfPath: '/assets/fontawesome-webfont.ttf';
+@fontAwesomeSvgzPath: '/assets/fontawesome-webfont.svgz';
+@fontAwesomeSvgPath: '/assets/fontawesome-webfont.svg';
// Font Awesome
@import "fontawesome";

0 comments on commit 15c212a

Please sign in to comment.
Something went wrong with that request. Please try again.