I have set up a phoenix project with TailwindCSS after following this guide from the Tailwind folks: Install Tailwind CSS with Phoenix - Tailwind CSS
When using TailwindCSS in regular templates that get called from my PageController the UI renders properly. However I am trying to use a template in templates/error/404.html.heex
, I find that none of the css renders, and I essentially get a plaintext HTML page. Is there a way to get tailwind picked up in the error templates?
Template rendered from PageController renders TailwindCSS
Error template rendered by Phoenix without TailwindCSS (I edited the dev.exs config to
debug_errors: false
so that the page could render instead of a Phoenix error message)