mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
FIX: Live reload plugin stylesheets when editing in development
This commit is contained in:
parent
3da9b99dbf
commit
e74f851728
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user