revert changes to tailwind serve
This commit is contained in:
1 parent
2f92619a28
commit
27bae6fbb7
1 file changed
+5
-12
@@ -166,18 +166,11 @@ impl AppServer {
|
|||||||
let client = AppBuilder::new(&client)?;
|
let client = AppBuilder::new(&client)?;
|
||||||
let server = server.map(|server| AppBuilder::new(&server)).transpose()?;
|
let server = server.map(|server| AppBuilder::new(&server)).transpose()?;
|
||||||
|
|
||||||
// Only start Tailwind watcher for client builds that serve assets (not server builds or fullstack mode)
|
let tw_watcher = TailwindCli::serve(
|
||||||
// In fullstack mode, the client build's prebuild() handles Tailwind generation to avoid race conditions
|
client.build.package_manifest_dir(),
|
||||||
let tw_watcher = if client.build.bundle != BundleFormat::Server && !fullstack {
|
client.build.config.application.tailwind_input.clone(),
|
||||||
TailwindCli::serve(
|
client.build.config.application.tailwind_output.clone(),
|
||||||
client.build.package_manifest_dir(),
|
);
|
||||||
client.build.config.application.tailwind_input.clone(),
|
|
||||||
client.build.config.application.tailwind_output.clone(),
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
// Return a dummy task that immediately completes for server builds or fullstack mode
|
|
||||||
tokio::spawn(async { Ok(()) })
|
|
||||||
};
|
|
||||||
|
|
||||||
_ = client.build.start_simulators().await;
|
_ = client.build.start_simulators().await;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user