fix: prettier_build unavailabe (#1410)

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
This commit is contained in:
YuKun LiuandEvan Almloff authored and GitHub committed 2023-09-02 18:31:34 -05:00
1 parent 94f76946fc
commit 2cfa0e4ea9
4 files changed
+10 -13

No files matched your search

+3 -3
View File
@@ -73,7 +73,7 @@ pub async fn serve_default(
config: CrateConfig,
start_browser: bool,
) -> Result<()> {
let first_build_result = crate::builder::build(&config, false)?;
let first_build_result = crate::builder::build(&config)?;
log::info!("🚀 Starting development server...");
@@ -134,7 +134,7 @@ pub async fn serve_hot_reload(
config: CrateConfig,
start_browser: bool,
) -> Result<()> {
let first_build_result = crate::builder::build(&config, false)?;
let first_build_result = crate::builder::build(&config)?;
log::info!("🚀 Starting development server...");
@@ -474,7 +474,7 @@ async fn ws_handler(
}
fn build(config: &CrateConfig, reload_tx: &Sender<()>) -> Result<BuildResult> {
let result = builder::build(config, true)?;
let result = builder::build(config)?;
// change the websocket reload state to true;
// the page will auto-reload.
if config