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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -