mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:33:58 -06:00
Merge pull request #2250 from ligthyear/fix-plugin-scss-import-path
Bugfix: Keep import path and context for plugin's scss imports
This commit is contained in:
commit
8d3c7b8f79
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user