asset pipeline - Rails bootstrap gem import vs require -
i wanted use in rails project bootstrap framework. used github repository/instruction it: https://github.com/twbs/bootstrap-rubygem. in instruction underlined need change application.css extension css.scss , use import statements (delete all: //= require). how can include in application other css files? require type //= require tree . in case have no idea do.
you can still use require_tree .
css files included way not compiled sass , not have access sass variables , mixins defined in other files.
the recommended solution create 1 single file (say main.scss) , import files require access site-wide sass resources (e.g. bootstrap variables , mixins). import 1 file in application.scss. , can leave require tree .
there pick rest of files.
Comments
Post a Comment