razorenko

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

fceruti

Please share your config/dev.exs and your base html template (where html>head>link is present ).

Most Liked

NduatiK

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

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)

Where Next?

Popular in Questions Top

Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New

Other popular topics Top

dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement