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 server = server.map(|server| AppBuilder::new(&server)).transpose()?;
|
||||
|
||||
// Only start Tailwind watcher for client builds that serve assets (not server builds or fullstack mode)
|
||||
// In fullstack mode, the client build's prebuild() handles Tailwind generation to avoid race conditions
|
||||
let tw_watcher = if client.build.bundle != BundleFormat::Server && !fullstack {
|
||||
TailwindCli::serve(
|
||||
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(()) })
|
||||
};
|
||||
let tw_watcher = TailwindCli::serve(
|
||||
client.build.package_manifest_dir(),
|
||||
client.build.config.application.tailwind_input.clone(),
|
||||
client.build.config.application.tailwind_output.clone(),
|
||||
);
|
||||
|
||||
_ = client.build.start_simulators().await;
|
||||
|
||||
|
||||
Reference in new issue
Block a user