mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
fix: tailwind.css use absolute path (#1649)
This commit is contained in:
parent
098689083d
commit
ff6c7efb41
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ pub fn gen_page(config: &DioxusConfig, serve: bool) -> String {
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.contains_key("tailwindcss")
|
.contains_key("tailwindcss")
|
||||||
{
|
{
|
||||||
style_str.push_str("<link rel=\"stylesheet\" href=\"tailwind.css\">\n");
|
style_str.push_str("<link rel=\"stylesheet\" href=\"/{base_path}/tailwind.css\">\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
replace_or_insert_before("{style_include}", &style_str, "</head", &mut html);
|
replace_or_insert_before("{style_include}", &style_str, "</head", &mut html);
|
||||||
|
|
Loading…
Reference in a new issue