Only compress web assets in the CLI (#2329)

* only compress web assets in the CLI

* precompressed -> pre-compressed

* only enable pre-compression in release builds
This commit is contained in:
Evan Almloff authored and GitHub committed 2024-04-26 00:47:04 -04:00
1 parent b147f5a737
commit a27d4e71ed
13 files changed
+461 -468

No files matched your search

+1 -4
View File
@@ -8,10 +8,7 @@ use dioxus_html::HtmlCtx;
use dioxus_rsx::hot_reload::*;
use fs_extra::dir::CopyOptions;
use notify::{RecommendedWatcher, Watcher};
use std::{
path::PathBuf,
sync::{Arc, Mutex},
};
use std::{path::PathBuf, sync::Arc};
use tokio::sync::broadcast::{self};
mod output;
+1 -1
View File
@@ -12,7 +12,7 @@ use dioxus_cli_config::CrateConfig;
use dioxus_rsx::hot_reload::*;
use std::{
net::{SocketAddr, UdpSocket},
sync::{Arc, Mutex},
sync::Arc,
};
use tokio::sync::broadcast;
-1
View File
@@ -112,7 +112,6 @@ mod test {
use super::*;
use axum::Router;
use axum_server::{Handle, Server};
async fn setup_servers(mut config: WebProxyConfig) -> String {