Skip to content

Commit

Permalink
fix: build with Tailwind (#608)
Browse files Browse the repository at this point in the history
* chore: upgrade tailwind

* fix: tailwind build and version bump

* fix: favicon.svg not .ico
  • Loading branch information
chasers authored Jun 27, 2023
1 parent b38c285 commit 14572d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ config :esbuild,
]

config :tailwind,
version: "3.1.8",
version: "3.3.2",
default: [
args: ~w(
--config=tailwind.config.js
Expand Down
2 changes: 1 addition & 1 deletion lib/realtime_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule RealtimeWeb do
and import those modules here.
"""

def static_paths, do: ~w(assets fonts images favicon.ico robots.txt)
def static_paths, do: ~w(assets fonts images favicon.svg robots.txt)

def controller do
quote do
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
def project do
[
app: :realtime,
version: "2.17.1",
version: "2.17.2",
elixir: "~> 1.14.0",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down Expand Up @@ -97,7 +97,7 @@ defmodule Realtime.MixProject do
"run priv/repo/seeds_after_migration.exs",
"test"
],
"assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"]
"assets.deploy": ["esbuild default --minify", "tailwind default --minify", "phx.digest"]
]
end
end

0 comments on commit 14572d7

Please sign in to comment.