The local html file can read local resources via src=file_path attributes on html tags (img, audio, video, script etc).
But the src-included files must be in the same directory as the root html file (or a descendant directory)
I used this in my macOS app Pocket Log to output a local html audio log (https://enzom.dev).
Sadly it doesn't work for JS modules, only for legacy JS scripts.