Add phx-track-static

This commit is contained in:
Paul-Henri Froidmont 2025-09-17 00:52:41 +02:00
parent 6f012b6796
commit 38655142b0
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 8 additions and 2 deletions

View file

@ -7,8 +7,13 @@ object RootLayout:
headTag(
metaTag(charset := "utf-8"),
metaTag(nameAttr := "viewport", contentAttr := "width=device-width, initial-scale=1"),
scriptTag(defer := true, typ := "text/javascript", src := "/static/app.js"),
linkTag(rel := "stylesheet", href := "/static/app.css"),
scriptTag(
defer := true,
phx.trackStatic := true,
typ := "text/javascript",
src := "/static/app.js"
),
linkTag(phx.trackStatic := true, rel := "stylesheet", href := "/static/app.css"),
titleTag("Scalive Example")
),
bodyTag(