I’ve recently been playing with custom Lovelace cards and see the same issues arising again and again.
Where do I put the files?
I get an error state undefined…
Etc
I wondered if you created a standard Lovelace card project, which can be used to form a standard basis with a uniform structure for people to work with, then something inside hassio like the add-on store where you can either use a general library of cards or add custom GitHub repos and load components in easily.
This way the file structure is created in a recommended location. It makes it easy to get all the files on your ha server. And developers can happily use things like webpack to get a first class development experience, with a single file output.