wip: handle vite tooling manually

This commit is contained in:
Alexander Navarro 2025-04-25 16:53:44 -04:00
parent 9246964edb
commit 9c1a8f030c
17 changed files with 187 additions and 333 deletions

View file

@ -5,10 +5,11 @@
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="dark light" name="color-scheme">
<!-- if development -->
{{ load_vite_script() | safe }}
<link href="/assets/css/style.scss" rel="stylesheet"/>
<script src="/assets/js/index.ts" type="module"></script>
<script src="htmx.org" type="module"></script>
{% if is_production == false %}
<script src="{{ asset('/@vite/client') }}" type="module"></script>
{% endif %}
<link href="{{ asset('assets/css/style.scss') }}" rel="stylesheet"/>
<script src="{{ asset('assets/js/index.ts') }}" type="module"></script>
<title>
{% block title %}Axum web service!{% endblock %}
</title>