[enh] bundle js_dependencies of plugins

This commit is contained in:
Martin Fischer 2022-01-19 00:23:09 +01:00
parent c183502917
commit 89b7cf0e8d
5 changed files with 73 additions and 12 deletions

View file

@ -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; }

View file

@ -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>