From 5d519fd87538db348078fe5237e3c9fa6cc6047e Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Thu, 28 Aug 2025 20:00:35 -0400 Subject: [PATCH] Fix CSS copying and processing with Trunk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use data-trunk directive for CSS processing instead of manual copy - Enable automatic content hashing and cache busting for styles.css - Remove unused CalendarInfo import to fix compiler warning - Simplify Trunk.toml by removing redundant copy configuration This ensures styles.css is properly copied and processed on every build with automatic cache invalidation when styles change. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Trunk.toml | 3 --- index.html | 2 +- src/app.rs | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Trunk.toml b/Trunk.toml index 8273999..3bd03f5 100644 --- a/Trunk.toml +++ b/Trunk.toml @@ -14,6 +14,3 @@ address = "127.0.0.1" port = 8080 open = false -[[copy]] -from = "styles.css" -to = "dist/" \ No newline at end of file diff --git a/index.html b/index.html index e540700..99f9814 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Calendar App - + \ No newline at end of file diff --git a/src/app.rs b/src/app.rs index c098b19..cda127a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2,7 +2,7 @@ use yew::prelude::*; use yew_router::prelude::*; use gloo_storage::{LocalStorage, Storage}; use crate::components::{Login, Calendar}; -use crate::services::{CalendarService, CalendarEvent, UserInfo, CalendarInfo}; +use crate::services::{CalendarService, CalendarEvent, UserInfo}; use std::collections::HashMap; use chrono::{Local, NaiveDate, Datelike};