Skip to content

Commit b14aa4a

Browse files
committed
fix: loop reloading trunk
1 parent 9260228 commit b14aa4a

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

Trunk.toml

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
[watch]
2+
ignore = [
3+
".git",
4+
".githooks",
5+
"style",
6+
"extras",
7+
"gen_assets",
8+
"src/extras",
9+
"build.rs",
10+
]
11+
112
[[hooks]]
213
stage = "pre_build"
314
command = "sh"

build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ fn generate_comunity(path: PathBuf) {
8989
brand_src,
9090
brand_alt,
9191
} = t;
92+
let brand_src = brand_src.replace("./", "img/");
9293
write!(
9394
out,
9495
r#"
@@ -162,6 +163,7 @@ fn generate_projects(path: PathBuf) {
162163
brand_as_letter,
163164
button_bg_color,
164165
} = t;
166+
let brand_src = brand_src.replace("./", "img/");
165167
write!(
166168
out,
167169
r#"

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
data-trunk
7272
rel="copy-dir"
7373
href="/gen_assets/"
74+
data-target-path="img"
7475
/>
7576
<link rel="preconnect" href="https://fonts.googleapis.com" />
7677
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />

0 commit comments

Comments
 (0)