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:
1 parent
7d5bd44791
commit
cb651a8ca2
11 files changed
+242
-11
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use crate::{CliSettings, Result};
|
||||
use crate::{CliSettings, Result, Workspace};
|
||||
use anyhow::{anyhow, Context};
|
||||
use flate2::read::GzDecoder;
|
||||
use std::path::{Path, PathBuf};
|
||||
@@ -402,10 +402,7 @@ impl WasmBindgen {
|
||||
}
|
||||
|
||||
async fn install_dir(&self) -> anyhow::Result<PathBuf> {
|
||||
let bindgen_dir = dirs::data_local_dir()
|
||||
.expect("user should be running on a compatible operating system")
|
||||
.join("dioxus/wasm-bindgen/");
|
||||
|
||||
let bindgen_dir = Workspace::dioxus_home_dir().join("wasm-bindgen/");
|
||||
fs::create_dir_all(&bindgen_dir).await?;
|
||||
Ok(bindgen_dir)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user