Use built-in compilation modes
mastermake4ht provides built-in modes to change the compilation behavior:
draftmode: Invokes ext{LaTeX} only once instead of the default three times. This is useful for quick iterations where cross-references are not critical. Use-um draft.cleanmode: Executes theMake:clean()command to remove all generated and temporary files from the current directory. No compilation occurs in this mode. Use-m clean.
# Fast draft compilation
$ make4ht -um draft filename.tex
# Clean up generated files (using -a info to see what was removed)
$ make4ht -m clean -a info filename.tex