Skip to content

Commit 50cb600

Browse files
authored
chore(examples): complete the migration to Tailwind 4 (#3861)
The tailwind_csr example was not working yet with version 4, and the tailwind_actix example still had the no-longer-needed config file. This also brings the three tailwind examples back in sync, mostly. I don't know why the axum example has a packages.json and packages-lock.json file, to be honest.
1 parent b725291 commit 50cb600

File tree

7 files changed

+3
-31
lines changed

7 files changed

+3
-31
lines changed

examples/tailwind_actix/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ site-pkg-dir = "pkg"
5757
# The tailwind input file.
5858
#
5959
# Optional, Activates the tailwind build
60-
tailwind-input-file = "style/tailwind.css"
60+
tailwind-input-file = "input.css"
6161
assets-dir = "public"
6262
# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup.
6363
site-addr = "127.0.0.1:3000"

examples/tailwind_actix/tailwind.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/tailwind_csr/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<link data-trunk rel="rust" data-wasm-opt="z" />
66
<link data-trunk rel="icon" type="image/ico" href="/public/favicon.ico" />
7-
<link data-trunk rel="tailwind-css" href="/style/tailwind.css" />
7+
<link data-trunk rel="tailwind-css" href="input.css" />
88
<title>Leptos • Counter with Tailwind</title>
99
</head>
1010

examples/tailwind_csr/input.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "tailwindcss";

examples/tailwind_csr/style/tailwind.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/tailwind_csr/tailwind.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)