Bladeren bron

Add conditional loading of banner script in development environment

codecalm 3 maanden geleden
bovenliggende
commit
08e4919ae1
2 gewijzigde bestanden met toevoegingen van 20 en 2824 verwijderingen
  1. 15 2824
      pnpm-lock.yaml
  2. 5 0
      shared/includes/layout/js.html

File diff suppressed because it is too large
+ 15 - 2824
pnpm-lock.yaml


+ 5 - 0
shared/includes/layout/js.html

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

Some files were not shown because too many files changed in this diff