Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding back Sass compressor #1626

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion actionpack/lib/sprockets/railtie.rb
Expand Up @@ -30,7 +30,7 @@ def self.using_coffee?

ActiveSupport.on_load(:action_view) do
include ::Sprockets::Helpers::RailsHelper

app.assets.context_class.instance_eval do
include ::Sprockets::Helpers::RailsHelper
end
Expand Down Expand Up @@ -82,6 +82,9 @@ def expand_js_compressor(sym)

def expand_css_compressor(sym)
case sym
when :scss
require 'sass/rails/compressor'
Sass::Rails::CssCompressor.new
when :yui
require 'yui/compressor'
YUI::CssCompressor.new
Expand Down