Bootstrap Sass with Rails 4

前端 未结 2 1997
一个人的身影
一个人的身影 2021-01-07 08:51

I\'m trying to use bootstrap-sass (3.1.0.2) and sass-rails (4.0.1) in my rails (4.0.0) project.

My application.css.scss file looks like this:

/*
 * T         


        
2条回答
  •  心在旅途
    2021-01-07 09:06

    Here's my setup with https://github.com/twbs/bootstrap-sass:

    # Gemfile
    gem 'bootstrap-sass'
    
    # application.css.scss
    /*
     *= require_self
     *= require vendor
     * require_tree .
     */
    
    @import "bootstrap";
    
    // Import individual stylesheet
    @import "base"; /* app/assets/stylesheets/base.css.scss */
    @import "events"; /* app/assets/stylesheets/events.css.scss */
    

    require_tree . is disabled, but importing individual CSS files (base, events) instead.

提交回复
热议问题