Fix CSS copying and processing with Trunk
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,3 @@ address = "127.0.0.1"
|
||||
port = 8080
|
||||
open = false
|
||||
|
||||
[[copy]]
|
||||
from = "styles.css"
|
||||
to = "dist/"
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<title>Calendar App</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link data-trunk rel="css" href="styles.css">
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user