Running mix help
reveals a number of “tasks”, which can be configured in config.exs
as well as invoked. Among them:
mix esbuild # Invokes esbuild with the profile and args
[...]
mix sass # Invokes sass with the profile and args
all fine. But in watchers:
configuration one can also use e. g. node: [..., cd: Path.expand("../assets", __DIR__]
This one cannot be used as mix task though. I’d like to invoke node
in a similar manner as in “watchers” but with different arguments from within the mix assets.deploy
task. Any hints?