Open duncanmcclean opened 1 month ago
Hey Duncan thanks for this and for your help. Just to add my notes and possibly I could help with writing a draft if I get all my facts straight.
Building assets for the frontend and the backend is a bit more complex and just one or the other. If we assume that the dependencies can be the same, we can probably document how to have separate vite config files?
Also I am not 100% sure what is the recommended way to distribute them. For the Statamic form helper you've used a "normal" import, however that leaves cache busting to the dev. In some addons the frontend assets might change often. Maybe we need to document also how to include them using the Vite tag or something similar?
This question has just come up on Discord:
My response was:
It feels like we could do with some more detailed documentation around how addon developers should handle this.