From aebae2fa5c8c5c7ede87b4fb5a632b5f459ede09 Mon Sep 17 00:00:00 2001 From: Vikhyat Korrapati Date: Fri, 11 Apr 2014 08:06:18 +0530 Subject: [PATCH] Only @import plugin scss. Fixes the huge emoji issue. --- lib/discourse_sass_importer.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/discourse_sass_importer.rb b/lib/discourse_sass_importer.rb index 468480ec4..5a7e6dbcd 100644 --- a/lib/discourse_sass_importer.rb +++ b/lib/discourse_sass_importer.rb @@ -42,7 +42,13 @@ class DiscourseSassImporter < Sass::Importers::Filesystem stylesheets = DiscoursePluginRegistry.mobile_stylesheets end contents = "" - stylesheets.each {|css| contents << "@import '#{css}';" } + stylesheets.each do |css_file| + if css_file =~ /\.scss$/ + contents << "@import '#{css_file}';" + else + contents << File.read(css_file) + end + end Sass::Engine.new(contents, options.merge( filename: "#{name}.scss", importer: self,