ok1ha
ok1ha

Reputation: 637

Foundation Icon Fonts via Bower

I just installed the Foundation Icon Fonts via Bower, and I want to know how best to get them included in my app.scss file while leaving the Bower folder as is. Below is my attempted setup and error I receive. I know I could just place the files is the scss folder of my site or in the foundation folder but then there would be no reason to use Bower.

The error I get is:

 error scss/app.scss (Line 13: File to import not found or unreadable: foundation-icon-fonts/_foundation-icons.scss.

bower_components folder:

 > bower_components
 >> fastclick
 >> foundation
 >> foundation-icon-fonts
 >> ...other components

bower.json:

 {
    "name": "foundation-compass-app",
    "version": "0.0.1",
    "private": "true",
    "dependencies": {
        "foundation": "~5.2.2",
        "foundation-icon-fonts": "*"
    }
 }

config.rb:

 # Require any additional compass plugins here.
 add_import_path "bower_components/foundation/scss"
 add_import_path "bower_components/foundation-icon-fonts"

 http_path = "/"
 css_dir = "stylesheets"
 sass_dir = "scss"
 images_dir = "images"
 javascripts_dir = "js"

 output_style = :compressed

Upvotes: 2

Views: 1715

Answers (1)

Shiva127
Shiva127

Reputation: 2623

In config.rb:

add_import_path "bower_components/foundation-icon-fonts"

In app.scss:

$fi-path: "/bower_components/foundation-icon-fonts";
@import "foundation-icons";

Upvotes: 2

Related Questions