razorenko
How do you rebuild CSS files in Phoenix 1.6.2?
In my dev environment (a non-live-view app), I have made changes to my app.css. However, stopping the project and recompiling does not reflect changes in the UI. I am guessing this is getting cached somewhere. The file sits in my lib/appweb/assets/css folder. What command could help refresh/ rebuild the CSS.
Phoenix User level: Novice.
First Post!
fceruti
Please share your config/dev.exs and your base html template (where html>head>link is present ).
Most Liked
NduatiK
The file sits in my lib/appweb/assets/css
The assets folder is not conventionally inside the appweb folder. Was this a typo or did you create your own custom folder (or is this an umbrella app)?
I expect assets at the same level as lib
_
|___ assets
| |___ css
|
|___ lib
Last Post!
jerry_s
in your endpoint.ex, does your static plug look like this? I had to change the “only” option to include “assets”
plug Plug.Static,
at: "/",
from: :some_project,
gzip: false,
only: ~w(assets fonts images favicon.ico robots.txt)
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
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









