fix(front:pathTooltip): correct importation of pathTooltip.css

This commit is contained in:
Edouard Vanbelle
2026-05-19 14:53:16 +02:00
parent 7edc30978a
commit 3557bc596a
3 changed files with 3 additions and 1 deletions
+2
View File
@@ -173,6 +173,7 @@ fn resolve_css_imports(entry: &Path, css_dir: &Path) -> String {
if let Some(rel) = extract_import_path(t) {
let resolved = css_dir.join(rel.trim_start_matches("./"));
if resolved.exists() {
println!("cargo:warning=CSS importing: {}", resolved.display());
out.push_str(&fs::read_to_string(&resolved).unwrap_or_default());
out.push('\n');
} else {
@@ -238,6 +239,7 @@ fn minify_tree_css(dir: &Path) {
if fname.starts_with("app.") || fname == "main.css" {
continue;
}
println!("cargo:warning=CSS importing: {}", p.display());
if let Ok(src) = fs::read_to_string(&p) {
let _ = fs::write(&p, css_minify_safe(&src));
}