Remove TailwindCSS from dependencies #11

Closed
opened 2024-06-20 09:00:29 +02:00 by hiway · 1 comment
Owner

Freedive is using Bulma for the CSS framework and does not require Tailwind. Additionally the compiler for tailwind is a pain to build on FreeBSD. A workaround for x86/amd64 exists, but arm64 is unsupported. Since we don;t use the framework at all, removing the boilerplate dependency seems like a good idea.

Freedive is using Bulma for the CSS framework and does not require Tailwind. Additionally the compiler for tailwind is a pain to build on FreeBSD. A workaround for x86/amd64 exists, but arm64 is unsupported. Since we don;t use the framework at all, removing the boilerplate dependency seems like a good idea.
Author
Owner

https://elixirforum.com/t/how-to-remove-tailwind-from-phoenix-completely-i-only-want-vanilla-css/54551/

  • remove :tailwind from mix.exs
  • remove commands like tailwind.install, tailwind default from aliases in mix.exs (make sure to preserve esbuild-related commands, if you still plan to use that!)
  • remove @import "tailwindcss/... from app.css
  • delete file /assets/tailwind.config.js
  • remove block starting with config :tailwind from config.exs
  • remove tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]} from watchers inside dev.exs
  • run mix deps.clean --unlock --unused
https://elixirforum.com/t/how-to-remove-tailwind-from-phoenix-completely-i-only-want-vanilla-css/54551/ - remove `:tailwind` from `mix.exs` - remove commands like `tailwind.install`, `tailwind default` from `aliases` in `mix.exs` (make sure to preserve `esbuild`-related commands, if you still plan to use that!) - remove `@import "tailwindcss/...` from `app.css` - delete file `/assets/tailwind.config.js` - remove block starting with `config :tailwind` from `config.exs` - remove `tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]}` from `watchers` inside `dev.exs` - run `mix deps.clean --unlock --unused`
hiway closed this issue 2024-06-20 09:35:03 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hiway/freedive#11
No description provided.