FIX: Live reload plugin stylesheets when editing in development

This commit is contained in:
David Taylor 2019-09-16 17:10:47 +01:00
parent 3da9b99dbf
commit e74f851728

View File

@ -78,7 +78,9 @@ module Stylesheet
Stylesheet::Manager.cache.clear
message = ["desktop", "mobile", "admin"].map do |name|
targets = ["desktop", "mobile", "admin"]
targets.append(*Discourse.find_plugin_css_assets(mobile_view: true, desktop_view: true))
message = targets.map do |name|
Stylesheet::Manager.stylesheet_data(name.to_sym, Stylesheet::Watcher.theme_id)
end.flatten
MessageBus.publish '/file-change', message