mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
parent
2b8e987cb8
commit
8fcf3544a8
2 changed files with 5 additions and 3 deletions
|
@ -56,9 +56,10 @@ pub fn HydrationScripts(
|
|||
if !line.is_empty() {
|
||||
if let Some((file, hash)) = line.split_once(':') {
|
||||
if file == "js" {
|
||||
js_file_name.push_str(&format!(".{}", hash));
|
||||
js_file_name.push_str(&format!(".{}", hash.trim()));
|
||||
} else if file == "wasm" {
|
||||
wasm_file_name.push_str(&format!(".{}", hash));
|
||||
wasm_file_name
|
||||
.push_str(&format!(".{}", hash.trim()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,7 +60,8 @@ pub fn HashedStylesheet(
|
|||
if !line.is_empty() {
|
||||
if let Some((file, hash)) = line.split_once(':') {
|
||||
if file == "css" {
|
||||
css_file_name.push_str(&format!(".{}", hash));
|
||||
css_file_name
|
||||
.push_str(&format!(".{}", hash.trim()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue