mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 06:25:11 -05:00
FEATURE: Multi-file javascript support for themes (#7526)
You can now add javascript files under `/javascripts/*` in a theme, and they will be loaded as if they were included in core, or a plugin. If you give something the same name as a core/plugin file, it will be overridden. Support file extensions are `.js.es6`, `.hbs` and `.raw.hbs`.
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
<%- unless customization_disabled? %>
|
||||
<%= raw theme_translations_lookup %>
|
||||
<%= raw theme_js_lookup %>
|
||||
<%= raw theme_lookup("head_tag") %>
|
||||
<%- end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user