mix phx.gen.tailwind (phx_gen_tailwind v0.1.3) View Source
Adds Tailwind to an existing Phoenix application.
mix phx.gen.tailwindIt will do the following:
- Create an
assets/package.jsonfile. - Install
tailwindcss - Create a
tailwind.config.jsfile with sane defaults - Add tailwind imports to your CSS file
- Add a Tailwind watcher to your Phoenix endpoint
- Update the
assets.deploymix task to include Tailwind processing