mix phx.gen.tailwind (phx_gen_tailwind v0.1.3) View Source

Adds Tailwind to an existing Phoenix application.

mix phx.gen.tailwind

It will do the following:

  • Create an assets/package.json file.
  • Install tailwindcss
  • Create a tailwind.config.js file with sane defaults
  • Add tailwind imports to your CSS file
  • Add a Tailwind watcher to your Phoenix endpoint
  • Update the assets.deploy mix task to include Tailwind processing