mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-17 19:12:37 -05:00
Only @import plugin scss. Fixes the huge emoji issue.
This commit is contained in:
parent
668a5ff526
commit
aebae2fa5c
1 changed files with 7 additions and 1 deletions
|
@ -42,7 +42,13 @@ class DiscourseSassImporter < Sass::Importers::Filesystem
|
||||||
stylesheets = DiscoursePluginRegistry.mobile_stylesheets
|
stylesheets = DiscoursePluginRegistry.mobile_stylesheets
|
||||||
end
|
end
|
||||||
contents = ""
|
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(
|
Sass::Engine.new(contents, options.merge(
|
||||||
filename: "#{name}.scss",
|
filename: "#{name}.scss",
|
||||||
importer: self,
|
importer: self,
|
||||||
|
|
Loading…
Reference in a new issue