RooSoft
Where should the CSS reside in a Phoenix Liveview app with --no-tailwind?
I am a back end programmer, and looking forward to team up with a front end guy. He likes to do plain CSS, so tailwind is not an option, as I want to make the process as frictionless as possible.
I’ve saffolded an app with mix phx.new --no-tailwind and figured out there is no CSS anymore in the assets folder…
There is one in the priv/static/assets folder, though. I am used to have this file being overwritten by phoenix, and thus not include it in the git repo. It seems to me though that there is no other CSS in the project, so I am wondering if my partner should write directly in that file, and thus have it included in the git repo.
Is that the way to go in our context? Feels odd a little not having it in the assets folder…
Most Liked
sodapopcan
I agree that it’s a little odd that it doesn’t set up a CSS file for you if you don’t choose Tailwind, though there’s probably a good reason!
In any event, all you have to do is create assets/css/app.css then add:
import "../css/app.css"
to the top of assets/js/app.js and you should be good to go.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










