mirror of
https://github.com/tabler/tabler.git
synced 2026-10-25 00:57:25 +04:00
Add conditional loading of banner script in development environment
This commit is contained in:
1 parent
ef9d75f32f
commit
08e4919ae1
2 files changed
+3027
-3770
No files matched your search
Generated
+3022
-3770
File diff suppressed because it is too large.
Load diff
@@ -12,5 +12,10 @@
|
||||
<!-- BEGIN DEMO SCRIPTS -->
|
||||
<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 -->
|
||||
|
||||
{% if environment == 'preview' %}
|
||||
<script src="https://scripts.tabler.io/banner.js" defer></script>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% scripts %}
|
||||
Reference in new issue
Block a user