generated from alecodes/base-template
refactor: change assets handling to vite-rs
chore: update dev environment wip: handle vite tooling manually
This commit is contained in:
parent
14a4d9b2b3
commit
af709f2e72
26 changed files with 406 additions and 389 deletions
|
|
@ -1 +1,2 @@
|
|||
// add the beginning of your app entry
|
||||
import "htmx.org";
|
||||
|
|
|
|||
0
frontend/static/.gitkeep
Normal file
0
frontend/static/.gitkeep
Normal 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 -->
|
||||
<script src="http://localhost:21012/@vite/client" type="module"></script>
|
||||
<link href="http://localhost:21012/frontend/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('css/style.scss') }}" rel="stylesheet"/>
|
||||
<script src="{{ asset('js/index.ts') }}" type="module"></script>
|
||||
<title>
|
||||
{% block title %}Axum web service!{% endblock %}
|
||||
</title>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue