Closed ryanwinchester closed 2 years ago
In the readme, it says:
make sure you have a assets.deploy alias for deployments, which will also use the --minify option: "assets.deploy": ["tailwind default --minify", ..., "phx.digest"]
make sure you have a assets.deploy alias for deployments, which will also use the --minify option:
assets.deploy
--minify
"assets.deploy": ["tailwind default --minify", ..., "phx.digest"]
However, it's not entirely clear what it means in the context of an existing Phoenix project that already has an assets.deploy alias.
Does that mean we replace the existing one:
- "assets.deploy": ["esbuild default --minify", "phx.digest"] + "assets.deploy": ["tailwind default --minify", "phx.digest"]
Or that we update it to:
- "assets.deploy": ["esbuild default --minify", "phx.digest"] + "assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
You keep esbuild there if you want to keep using it for your javascript. So for me I have:
"assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
In the readme, it says:
However, it's not entirely clear what it means in the context of an existing Phoenix project that already has an
assets.deploy
alias.Does that mean we replace the existing one:
Or that we update it to: