I haven't tried this but how do you get around the fact that it hallucinates functions and variables when doing it file by file? I haven't managed to make an app without error going this route. The only time it produces something working is when I keep it single-file (e.g. html, js and css together) or single-function.