-
Notifications
You must be signed in to change notification settings - Fork 106
some fix #68
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
With Sprockets 4 and gems using # config/initializers/sassc_rails.rb
require "sprockets/engines"
module Extensions
module Sprockets
module Engines
def register_engine(ext, klass, opts={})
return if [
Sass::Rails::SassTemplate,
Sass::Rails::ScssTemplate
].include?(klass)
super
end
end
end
end
Sprockets::Base.send(:prepend, Extensions::Sprockets::Engines)
Rails.application.config.assets.configure do |env|
if env.respond_to?(:register_transformer)
env.register_transformer 'text/sass', 'text/css', SassC::Rails::SassTemplate.new
env.register_transformer 'text/scss', 'text/css', SassC::Rails::ScssTemplate.new
else
env.register_engine '.sass', SassC::Rails::SassTemplate
env.register_engine '.scss', SassC::Rails::ScssTemplate
end
end |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
The text was updated successfully, but these errors were encountered: