-
-
Save topfunky/1128807 to your computer and use it in GitHub Desktop.
SASS support for Jammit in development mode (also with proper plugins support, for e.g. Compass)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Much simpler, less work. Handles everything SASS can. | |
require 'haml/util' | |
require 'sass/engine' | |
module Jammit | |
module Helper | |
SASS_TIMESTAMPS = {} | |
def include_stylesheets_with_sass(*packages) | |
unless Rails.env.production? | |
Sass::Plugin.update_stylesheets | |
end | |
include_stylesheets_without_sass(*packages) | |
end | |
alias_method_chain :include_stylesheets, :sass | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment