don't delete the dist directory
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
This commit is contained in:
parent
eea84bf03d
commit
144081da09
1 changed files with 0 additions and 3 deletions
|
@ -97,9 +97,6 @@ pub fn get_config(file_path: &str) -> Config {
|
||||||
fn init(dist_dir: String, static_dir: String, templates_dir: String) -> String {
|
fn init(dist_dir: String, static_dir: String, templates_dir: String) -> String {
|
||||||
// The static folder is minimized only in release mode
|
// The static folder is minimized only in release mode
|
||||||
if cfg!(debug_assertions) {
|
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()
|
".".to_string()
|
||||||
} else {
|
} else {
|
||||||
let cfg = Cfg::spec_compliant();
|
let cfg = Cfg::spec_compliant();
|
||||||
|
|
Loading…
Reference in a new issue