fix: tailwind.css use absolute path (#1649)

This commit is contained in:
HJin.me authored and GitHub committed 2023-11-19 11:22:54 -06:00
1 parent 098689083d
commit ff6c7efb41
1 file changed
+1 -1
+1 -1
View File
@@ -469,7 +469,7 @@ pub fn gen_page(config: &DioxusConfig, serve: bool) -> String {
.unwrap_or_default()
.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);