sass - Importing rails-assets.org stylesheets from SCSS -
is possible import stylesheet rails-assets.org gem using scss's import instead of sprocket's require? example:
given gemfile:
source 'https://rails-assets.org' gem "rails-assets-rrssb" using sprockets stylesheet, you'd use require in application.css (working):
*= require rrssb/scss/rrssb however, i'm using scss , use import in application.css.scss (not working):
@import "rrssb/scss/rrssb";
- go rvm gem directory (
rvm gemdir) , gemrails-assetspulled (/gems/rails-assets-your_gem-version). - in
app/assets/stylesheetsdirectory find file. - import/require file path relative
app/assets/stylesheets.
the same goes javascripts (in app/assets/javascripts).
this worked me rails-assets-bootstrap-sass-official, file trying import bootstrap-sporckets , (including other files) under app/assets/stylesheets/bootstrap-sass-official import was:
@import "bootstrap-sass-official/bootstrap-sprockets"
Comments
Post a Comment