FEATURE: allows plugins to register no module files (#6664)

This commit is contained in:
Joffrey JAFFEUX
2018-11-26 09:01:28 +01:00
committed by Guo Xiang Tan
parent 565603ad0d
commit 4546d8fbbf

View File

@ -139,7 +139,7 @@ class DiscoursePluginRegistry
end
end
JS_REGEX = /\.js$|\.js\.erb$|\.js\.es6$/
JS_REGEX = /\.js$|\.js\.erb$|\.js\.es6|\.js\.no-module\.es6$/
HANDLEBARS_REGEX = /\.hbs$|\.js\.handlebars$/
def self.register_asset(asset, opts = nil)