Clean up reloader

This commit is contained in:
Jonathan Kelley committed 2024-03-13 14:36:56 -07:00
1 parent 1bdc9d132e
commit 8d8e7edb82
3 files changed
+6 -19

No files matched your search

+4 -15
View File
@@ -1,16 +1,5 @@
use std::{fs, io, process::Command, sync::Arc};
use crate::{
builder,
serve::Serve,
server::{
output::{print_console_info, PrettierOptions, WebServerInfo},
setup_file_watcher, HotReloadState,
},
BuildResult, Result,
};
use tower::ServiceBuilder;
use super::{hot_reload::*, WsReloadState};
use crate::{server::HotReloadState, Result};
use axum::{
body::Body,
extract::{
@@ -28,8 +17,8 @@ use axum::{
};
use axum_server::tls_rustls::RustlsConfig;
use dioxus_cli_config::{CrateConfig, WebHttpsConfig};
use super::{hot_reload::*, WsReloadState};
use std::{fs, io, process::Command, sync::Arc};
use tower::ServiceBuilder;
use tower_http::{
cors::{Any, CorsLayer},
services::fs::{ServeDir, ServeFileSystemResponseBody},