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:
6792
pnpm-lock.yaml
generated
6792
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -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 %}
|
||||||
Reference in New Issue
Block a user