Stays compatible with 2.x series, thanks to an unified codebase.
Extending the Writer wasn't the complete answer because the static generator also copies some files. Instead, I implemented the work as a plugin that attaches to the finalized event.