mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 14:35:42 +08: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
|
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)
|
Stylesheet::Manager.stylesheet_data(name.to_sym, Stylesheet::Watcher.theme_id)
|
||||||
end.flatten
|
end.flatten
|
||||||
MessageBus.publish '/file-change', message
|
MessageBus.publish '/file-change', message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user