1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Add conditional loading of banner script in development environment

This commit is contained in:
codecalm
2025-05-26 20:21:57 +02:00
parent ef9d75f32f
commit 08e4919ae1
2 changed files with 3027 additions and 3770 deletions

6792
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,4 +13,9 @@
<script src="{{ page | relative }}/preview/js/demo{% if environment != 'development' %}.min{% endif %}.js{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" defer></script> <script src="{{ page | relative }}/preview/js/demo{% if environment != 'development' %}.min{% endif %}.js{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" defer></script>
<!-- END DEMO SCRIPTS --> <!-- END DEMO SCRIPTS -->
{% if environment == 'preview' %}
<script src="https://scripts.tabler.io/banner.js" defer></script>
{% endif %}
{% scripts %} {% scripts %}