mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "Merge pull request #2125 from vikhyat/css-variables"
This reverts commitb537de3ca5, reversing changes made tob925827e5b.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user