Sass Source Map in Rails 5

匆匆过客 提交于 2020-01-24 03:05:10

问题


Trying to figure out why I can’t get source maps working in Rails 5. Rails 5 uses Sass 3.4.2x, so it seems like it shouldn’t have the problem previous versions of Rails had.

I’ve added the following to config/environments/development.rb

# Enable source maps for Sass
config.sass.inline_source_maps = true

回答1:


In your Gemfile

Remove

gem 'sass-rails'

Add

gem 'sassc-rails'

Enjoy Source Maps



来源:https://stackoverflow.com/questions/35370520/sass-source-map-in-rails-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!