-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bower installation: wrong font path in rails #689
Comments
@glebm can you help me with this please? |
For you app, you can simply add bootstrap-sass-official/assets/fonts to the load path (#592). config.assets.paths << Rails.root.join(*%w(assets components bootstrap-sass-official assets fonts) A better solution would be improve Sprockets with support for relative paths in |
yes I am looking for something like improve the sprockets I don't want to add the bootstrap font path to my assets or something related to that. |
This reverts commit 2eb5faf. See rails/sass-rails#241
@glebm why did you revert the commit? |
Because it does not work, see rails/sass-rails#241 |
Please try out the lastest |
To do: add Readme section on using the Bower package with Rails. |
This issue also affects middleman (and I imagine anything else that uses sprockets). I had to similarly tell sprockets about the font load path. In my case I wanted to load all the fonts so I have a little bit of heavy-handed loading going on here in after_configuration do
@bower_config = JSON.parse(IO.read("#{root}/.bowerrc"))
Dir.glob(File.join("#{root}", @bower_config["directory"], "**/*", "fonts")) do |f|
sprockets.append_path f
end
sprockets.append_path File.join "#{root}", @bower_config["directory"]
end This appears to work for me. |
Relative path resolution in $icon-font-path: "bootstrap-sass-official/assets/fonts/bootstrap/"; |
Released in v3.3.0 |
I am using bower for install the dependency of bootstrap.
_.bowerrc_
_add components folder_ to the asset pipeline
_require_ the bootstrap dependency
The problem is in _glyphicons file the lines where we specify the dependency with the font files I need to change it to because it's giving me error.
I don't like the idea of go to the bower files and change it, that's pretty bad in my opinion. What can I do? for fix this problem
The text was updated successfully, but these errors were encountered: