Created
June 15, 2015 08:56
-
-
Save yoavmatchulsky/a413564b297c789ae56b to your computer and use it in GitHub Desktop.
Rails with Angular's application.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module RailsWithNg | |
class Application < Rails::Application | |
[...] | |
config.assets.paths << Rails.root.join('app', 'ng') | |
# Add bower CSS components | |
bower_path = Rails.root.join('vendor', 'assets', 'bower_components') | |
config.assets.paths << bower_path | |
config.sass.load_paths << bower_path | |
# and paths to use sass's @import for bootstrap | |
config.assets.paths << bower_path.join('bootstrap-sass', 'assets', 'stylesheets') | |
config.assets.precompile << %r( bootstrap-sass/assets/fonts/bootstrap/[\w-]+\.(?:eot|svg|ttf|woff2?)$ ) | |
# support bootstrap glyphicons | |
::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max | |
config.font_assets.origin = '*' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment