How can I enable Source Maps for Sass in rails 4? -
according issue https://github.com/rails/sass-rails/pull/192 sass-rails
hasn't support sass 3.3 yet.
but seems sass-rails-source-maps
has been depending on sass 3.3 since beginning. there way use gem sass-rails
?
according readme sass-rails-source-maps
, chrome dropped support of source maps files sass older version 3.3.
does mean there no way of using sass source maps chrome devtools now?
there great new drop in replacement sass-rails, not faster, has option use inline source-maps.
just add gemfile
#gem 'sass-rails', '~> 5.0' gem 'sassc-rails'
and add configuration
# config/environments/development.rb config.sass.inline_source_maps = true
don't forget restart server, should see working in inspector:
you can find repo here: https://github.com/sass/sassc-rails
Comments
Post a Comment