Umbrella projects are for sharing a mix.lock file and associated dependencies between multiple OTP applications. They don’t have anything to offer to the subject of web assets. If it makes sense to have multiple web apps in an umbrella, probably the only reasonable way to share assets would be through symlinks.
so that might be useful - though you are tightly coupling the two phoenix apps, which leads me to believe they should perhaps be united… also I would assume you need to set CORS headers, deal with same-origin and all kinds of other stuff… so the real(off-topic) question is perhaps why two separate phoenix apps?
This exact topic was discussed on one of the ElixirTalk podcast episodes. I think that conversation might be useful to you. If I remember correctly, it was @desmond who brought it up and provided some examples. I’ll see if I can find the exact episode for you when I get back on my desktop later (writing from mobile now).
unmodified from its original form. It will request assets from its own endpoint, which the Plug.Static will serve either from its own assets (for AppA) or from the assets of a different app within the umbrella (AppB). Basically all your assets are served from AppA. There’s no magic to that- specifying a different app just tells the plug to look in a certain directory, it doesn’t really “know” about the other app and doesn’t go through its Phoenix request stack. So it’s pretty fast.
To serve a main stylesheet across apps plus a custom stylesheet for a particular app, I’d recommend making a separate Phoenix app (or endpoint) called assets whose only purpose is to serve assets. Then you point all your Plug.Statics to serve assets from that assets app. You need to tell brunch how to output the correct segregated asset files, like app.css, app1.css, etc. Then in your app.html.eex, something like: