Revert "Merge pull request #2125 from vikhyat/css-variables"

This reverts commit b537de3ca5, reversing
changes made to b925827e5b.
This commit is contained in:
Régis Hanol
2014-04-01 16:24:29 +02:00
parent b537de3ca5
commit 77a8a4083a
60 changed files with 178 additions and 133 deletions

View File

@@ -35,10 +35,10 @@ task 'assets:precompile:before' do
def evaluate(context, locals, &block)
::Sprockets.cache_compiled("sass", data) do
# HACK, SASS compiler will degrade to aweful perf with huge files
# Bypass if larger than 500kb, ensure assets are minified prior
# Bypass if larger than 200kb, ensure assets are minified prior
if context.pathname &&
context.pathname.to_s =~ /.css$/ &&
data.length > 500.kilobytes
data.length > 200.kilobytes
puts "Skipped minifying #{context.pathname} cause it is larger than 200KB, minify in source control or avoid large CSS files"
data
else