mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[enh] bundle js_dependencies of plugins
This commit is contained in:
parent
c183502917
commit
89b7cf0e8d
5 changed files with 73 additions and 12 deletions
|
|
@ -101,9 +101,9 @@
|
|||
data-method="{{ method or 'POST' }}"
|
||||
data-autocompleter="{% if autocomplete %}true{% else %}false{% endif %}"
|
||||
data-translations="{{ translations }}"></script>
|
||||
{% for script in scripts %}
|
||||
{{""}}<script src="{{ url_for('static', filename=script) }}"></script>
|
||||
{% endfor %}
|
||||
{% if plugin_scripts_bundle_url %}
|
||||
<script src="{{ plugin_scripts_bundle_url }}"></script>
|
||||
{% endif %}
|
||||
<noscript>
|
||||
<style>
|
||||
.glyphicon { display: none; }
|
||||
|
|
|
|||
|
|
@ -59,8 +59,8 @@
|
|||
</p>
|
||||
</footer>
|
||||
<script src="{{ url_for('static', filename='js/searxng.min.js') }}"></script>
|
||||
{% for script in scripts %}
|
||||
<script src="{{ url_for('static', filename=script) }}"></script>
|
||||
{% endfor %}
|
||||
{% if plugin_scripts_bundle_url %}
|
||||
<script src="{{ plugin_scripts_bundle_url }}"></script>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue