From 269600323a4189c3df5ca8c6e8ea367957e3176e Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Thu, 10 Apr 2014 16:24:09 +0200 Subject: [PATCH] Bugfix: Keep import path and context for plugin scss imports - instead of concating all files into one gigantic file reuse the importer - and that way keep the context for relative paths in plugin scss --- lib/discourse_sass_importer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_sass_importer.rb b/lib/discourse_sass_importer.rb index 5c4bca4b3ff..468480ec477 100644 --- a/lib/discourse_sass_importer.rb +++ b/lib/discourse_sass_importer.rb @@ -42,7 +42,7 @@ class DiscourseSassImporter < Sass::Importers::Filesystem stylesheets = DiscoursePluginRegistry.mobile_stylesheets end contents = "" - stylesheets.each {|css| contents << File.read(css) } + stylesheets.each {|css| contents << "@import '#{css}';" } Sass::Engine.new(contents, options.merge( filename: "#{name}.scss", importer: self,