feat: commit code

This commit is contained in:
YuKun Liu committed 2022-08-30 21:12:57 -07:00
1 parent 9f20337e5e
commit 59b8a84530
1 file changed
+3 -2
+3 -2
View File
@@ -289,8 +289,6 @@ pub async fn startup_default(
log::info!("🚀 Starting development server...");
plugin_manager.on_serve_start(&config)?;
let dist_path = config.out_dir.clone();
let (reload_tx, _) = broadcast::channel(100);
@@ -316,6 +314,7 @@ pub async fn startup_default(
.unwrap_or_else(|| vec![PathBuf::from("src")]);
let watcher_config = config.clone();
let wacher_plugin_manager = plugin_manager;
let mut watcher = notify::recommended_watcher(move |info: notify::Result<notify::Event>| {
let config = watcher_config.clone();
if let Ok(e) = info {
@@ -362,6 +361,8 @@ pub async fn startup_default(
},
);
plugin_manager.on_serve_start(&config)?;
let file_service_config = config.clone();
let file_service = ServiceBuilder::new()
.and_then(