don't delete the dist directory
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2023-04-09 19:43:55 +02:00
parent eea84bf03d
commit 144081da09
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -97,9 +97,6 @@ pub fn get_config(file_path: &str) -> Config {
fn init(dist_dir: String, static_dir: String, templates_dir: String) -> String {
// The static folder is minimized only in release mode
if cfg!(debug_assertions) {
// Be sure that we not gonna use the dist folder by deleting it
remove_dir_all(dist_dir).unwrap_or_default();
".".to_string()
} else {
let cfg = Cfg::spec_compliant();