From a8cde136407a8507430fc95e2fe90c0afbc39388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5hm=C3=98ud=20=F0=9F=A6=80?= Date: Mon, 12 May 2025 19:32:49 +0300 Subject: [PATCH] fix: use `trunk` built-in tailwind config (#19) --- examples/yew/README.md | 3 --- examples/yew/Trunk.toml | 6 ++--- examples/yew/index.html | 2 +- examples/yew/{css => src}/tailwind.css | 0 examples/yew/tailwind.config.js | 34 +------------------------- 5 files changed, 4 insertions(+), 41 deletions(-) rename examples/yew/{css => src}/tailwind.css (100%) diff --git a/examples/yew/README.md b/examples/yew/README.md index 0d6f2fc..fd753c7 100644 --- a/examples/yew/README.md +++ b/examples/yew/README.md @@ -78,9 +78,6 @@ trunk serve --port 3000 ``` -1. Uncomment this line: - https://github.com/opensass/input-rs/blob/f17f89fc85f464381beb5bc9c5596a9def7924ce/examples/yew/index.html#L5 - Navigate to http://localhost:3000 to explore all available components. ## 🌀 Tailwind CSS Components diff --git a/examples/yew/Trunk.toml b/examples/yew/Trunk.toml index c3c275b..3135c40 100644 --- a/examples/yew/Trunk.toml +++ b/examples/yew/Trunk.toml @@ -1,4 +1,2 @@ -[[hooks]] -stage = "post_build" -command = "sh" -command_arguments = ["-c", "npx tailwindcss@v3 -i ./css/tailwind.css -o ./dist/.stage/index.css"] \ No newline at end of file +[tools] +tailwindcss = "3.4.17" diff --git a/examples/yew/index.html b/examples/yew/index.html index 1339211..bd63e56 100644 --- a/examples/yew/index.html +++ b/examples/yew/index.html @@ -2,7 +2,7 @@ - +