Allow importing Discourse styles in custom stylesheets to modify vars.

This commit is contained in:
Vikhyat Korrapati
2014-03-08 18:55:03 +05:30
parent a3f270f0e9
commit ddd1dfe896
58 changed files with 66 additions and 176 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 200kb, ensure assets are minified prior
# Bypass if larger than 500kb, ensure assets are minified prior
if context.pathname &&
context.pathname.to_s =~ /.css$/ &&
data.length > 200.kilobytes
data.length > 500.kilobytes
puts "Skipped minifying #{context.pathname} cause it is larger than 200KB, minify in source control or avoid large CSS files"
data
else