I don't agree that you don't have to know CSS/HTML when you use a frontend framework.
I guess some frontend frameworks can abstract it away but most don't and you almost certainly will run into the limitations of those frameworks and then you still need to understand HTML/CSS
if possible you can also just create directories if they don't exist (ie. mkdir -p) and just exclude it in your root .gitignore (ie. ignore all build directories). That would safe you from creating multiple .gitignore files.
I tried this for a virtualized full screen gnome desktop environment but the latency was unbearable. I also couldn't get passthrough of command/caps lock etc to the virtual machine stable. Finally connecting an USB device (like a yubikey) didn't work seamless.
I guess some frontend frameworks can abstract it away but most don't and you almost certainly will run into the limitations of those frameworks and then you still need to understand HTML/CSS