Skip to content

A platform for community discussion. Free, open, simple.

FIX: Live reload plugin stylesheets when editing in development

David Taylore74f8517282a
diff --git a/lib/stylesheet/watcher.rb b/lib/stylesheet/watcher.rb
index 1bfc7c2994e..1fbe7f3aae6 100644
--- a/lib/stylesheet/watcher.rb
+++ b/lib/stylesheet/watcher.rb
@@ -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