mirror of
https://github.com/discourse/discourse.git
synced 2025-03-30 01:35:43 +08:00
DEV: Ensure the correct plugin stylesheets are reloaded in development
If a plugin name contained the name of another plugin, the wrong stylesheets would be reloaded. For example, working on discourse-prometheus-alert-receiver would cause discourse-prometheus stylesheets to be reloaded.
This commit is contained in:
parent
87e2c9de24
commit
76c02cac65
@ -61,7 +61,7 @@ module Stylesheet
|
|||||||
paths.map! do |long|
|
paths.map! do |long|
|
||||||
plugin_name = nil
|
plugin_name = nil
|
||||||
plugins_paths.each do |plugin_path|
|
plugins_paths.each do |plugin_path|
|
||||||
if long.include?(plugin_path)
|
if long.include?("#{plugin_path}/")
|
||||||
plugin_name = File.basename(plugin_path)
|
plugin_name = File.basename(plugin_path)
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user