mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 03:09:29 +08:00
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
This commit is contained in:
parent
8e58687df5
commit
269600323a
|
@ -42,7 +42,7 @@ class DiscourseSassImporter < Sass::Importers::Filesystem
|
||||||
stylesheets = DiscoursePluginRegistry.mobile_stylesheets
|
stylesheets = DiscoursePluginRegistry.mobile_stylesheets
|
||||||
end
|
end
|
||||||
contents = ""
|
contents = ""
|
||||||
stylesheets.each {|css| contents << File.read(css) }
|
stylesheets.each {|css| contents << "@import '#{css}';" }
|
||||||
Sass::Engine.new(contents, options.merge(
|
Sass::Engine.new(contents, options.merge(
|
||||||
filename: "#{name}.scss",
|
filename: "#{name}.scss",
|
||||||
importer: self,
|
importer: self,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user