Skip to content

Commit

Permalink
fix: tailwind.css use absolute path (#1649)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjin-me authored Nov 19, 2023
1 parent 0986890 commit ff6c7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff6c7ef

Please sign in to comment.