mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Many Plugin upgrades.
This commit is contained in:
@ -23,6 +23,15 @@ class Plugin::Instance
|
||||
@metadata = metadata
|
||||
@path = path
|
||||
@assets = []
|
||||
|
||||
# Automatically include all ES6 JS files
|
||||
if @path
|
||||
dir = File.dirname(@path)
|
||||
Dir.glob("#{dir}/assets/javascripts/**/*.js.es6") do |f|
|
||||
relative = f.sub("#{dir}/assets/", "")
|
||||
register_asset(relative)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def name
|
||||
|
Reference in New Issue
Block a user