Inline the TailwindCLI into dx and run it during serve (#4086)

* wip: download the tailwind cli and then run it during serve
* allow no-downloads again
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-05-07 17:17:39 -07:00
1 parent 7d5bd44791
commit cb651a8ca2
11 files changed
+242 -11

No files matched your search

+7
View File
@@ -369,6 +369,13 @@ impl Workspace {
.context("Failed to find dx")?,
)
}
/// Returns the path to the dioxus home directory, used to install tools and other things
pub(crate) fn dioxus_home_dir() -> PathBuf {
dirs::data_local_dir()
.map(|f| f.join("dioxus/"))
.unwrap_or_else(|| dirs::home_dir().unwrap().join(".dioxus"))
}
}
impl std::fmt::Debug for Workspace {