add live reloading to the client

This commit is contained in:
りき萌 2024-11-23 19:12:00 +01:00
parent 7169e65244
commit 5ce9cfc022
6 changed files with 38 additions and 18 deletions

View file

@ -17,6 +17,12 @@ clever to do while browser vendors figure that out, we'll just have to do a cach
--}}
<script type="importmap">{{{ import_map }}}</script>
{{#if dev}}
<script type="module">
import "treehouse/live-reload.js";
</script>
{{/if}}
<script>
const TREEHOUSE_SITE = `{{ config.site }}`;