fix replace rules

This commit is contained in:
MLH
2024-12-12 00:17:25 +01:00
parent baf406eb96
commit 3584482967
3 changed files with 33 additions and 25 deletions

View File

@@ -5,7 +5,7 @@ destination_directory: './web'
copy_rules:
- sources:
- source: './img/icon-transparent.png'
target: 'assets/img/icon-transparent.png'
target: './assets/img/icon-transparent.png'
mode: 'replace' # Überschreibt vorhandene Dateien/Ordner
@@ -13,7 +13,7 @@ copy_rules:
- './ui' # Gesamter Ordner/Datei wird in destination_directory kopiert
- source: './img/background.png'
target: 'assets/img/background.png'
target: './assets/img/background.png'
mode: 'copy' # Kopiert Dateien/Ordner
# Modifikationsregeln
@@ -24,6 +24,8 @@ modification_rules:
insert_text: ' added after text '
- before_text: 'This is a before text'
insert_text: ' added before text '
replace_rules:
- old_text: 'Replace this text'
new_text: 'Replaced text'