I want to write a Rule that overwrites a file every time. In the following and have MergeStrategy set to Overwrite:
coll
Thanks @cgatian for that hint!
Unfortunately it didn't worked to move the templates to some location, so I had to add:
forEach(fileEntry => {
const destPath = join(options.output, fileEntry.path);
if (tree.exists(destPath)) {
tree.overwrite(destPath, fileEntry.content);
} else {
tree.create(destPath, fileEntry.content);
}
return null;
})
Until the MergeStrategy works as expected,
this will do the trick passing the destination path in options.output!
Thanks again!