Hi,
I’ve been trying to setup an umbrella application, that contains 3 apps.
My current big question is how to setup esbuild and tailwind for this. Do I need to create 3 of these in config.exs that point to each one of the apps? This one is pointing to dashboard_app.
config :esbuild,
version: "0.13.10",
default: [
cd: Path.expand("../apps/dashboard_app/assets", __DIR__),
args:
~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]
Same thing for tailwind. Do I need 3?
config :tailwind,
version: "3.1.6",
default: [
args: ~w(
--config=tailwind.config.js
--input=css/app.css
--output=../priv/static/assets/app.css
),
cd: Path.expand("../apps/dashboard_app/assets", __DIR__)
]
What is the correct approach. My current problem is that it does not work with all 3 configs… I always need to comment the 2 apps esbuild+tailwind configs that I’m not working at the moment, to make it work for the one I’m building… looks like some race condition of sorts.
Any help from people that have umbrella apps?
thanks
Erlang/OTP 25 [erts-13.0.2] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns] [dtrace]
Elixir 1.13.4 (compiled with Erlang/OTP 24)
phoenix 1.6.11