Merge branch 'master' into cli-config-library

This commit is contained in:
Evan Almloff committed 2023-11-20 18:35:24 -06:00
commit 557630c419
6 files changed
+72 -44

No files matched your search

+8 -2
View File
@@ -460,8 +460,14 @@ pub fn gen_page(config: &DioxusConfig, serve: bool) -> String {
&style.to_str().unwrap(),
))
}
if config.application.tools.clone().contains_key("tailwindcss") {
style_str.push_str("<link rel=\"stylesheet\" href=\"tailwind.css\">\n");
if config
.application
.tools
.clone()
.unwrap_or_default()
.contains_key("tailwindcss")
{
style_str.push_str("<link rel=\"stylesheet\" href=\"/{base_path}/tailwind.css\">\n");
}
replace_or_insert_before("{style_include}", &style_str, "</head", &mut html);