🐛 (build): Aísla dir temp. por nombre de destino
This commit is contained in:
parent
0410b8c060
commit
47b6553fe4
1 changed files with 4 additions and 2 deletions
|
|
@ -203,9 +203,11 @@ impl StaticFilesBundle {
|
||||||
where
|
where
|
||||||
P: AsRef<Path>,
|
P: AsRef<Path>,
|
||||||
{
|
{
|
||||||
// Crea un directorio temporal para el archivo CSS.
|
// Crea un directorio temporal único para el archivo CSS (basado en su nombre, para que
|
||||||
|
// varias llamadas a from_scss en el mismo build.rs no se pisen).
|
||||||
let out_dir = std::env::var("OUT_DIR").unwrap();
|
let out_dir = std::env::var("OUT_DIR").unwrap();
|
||||||
let temp_dir = Path::new(&out_dir).join("from_scss_files");
|
let safe_name = target_name.replace(['.', '-'], "_");
|
||||||
|
let temp_dir = Path::new(&out_dir).join(format!("from_scss_{safe_name}"));
|
||||||
|
|
||||||
// Limpia el directorio temporal de ejecuciones previas, si existe.
|
// Limpia el directorio temporal de ejecuciones previas, si existe.
|
||||||
if temp_dir.exists() {
|
if temp_dir.exists() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue