Phoenix + esbuild + Tailwind - cache busting

I’m using Phoenix with esbuild and tailwind and I’m trying to set up cache busting with hashed files for CSS and JS files similar to this;


I only have one CSS and one JS file. I’ve been trying to set it up for the last couple of hours with no luck. Has anyone done this successfully?

The digest suffix is generated by mix phx.digest based on the content of files bundled by the esbuild and tailwind mix tasks…

There is nothing the be done; It just works ™️


You do not need to use esbuild and tailwind create hash.
Just do:

mix phx.digest 
1 Like