Skip to content

Commit d1eddec

Browse files
green-davidSteffenDE
authored andcommitted
Add ColocatedCSS with Scoped CSS Support
1 parent c2288a5 commit d1eddec

9 files changed

Lines changed: 946 additions & 16 deletions

File tree

config/e2e.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import Config
22

33
config :logger, :level, :error
4+
5+
config :phoenix_live_view, :root_tag_attribute, "phx-r"

lib/mix/tasks/compile/phoenix_live_view.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ defmodule Mix.Tasks.Compile.PhoenixLiveView do
22
@moduledoc """
33
A LiveView compiler for HEEx macro components.
44
5-
Right now, only `Phoenix.LiveView.ColocatedHook` and `Phoenix.LiveView.ColocatedJS`
6-
are handled.
5+
Right now, only `Phoenix.LiveView.ColocatedHook`, `Phoenix.LiveView.ColocatedJS`,
6+
and `Phoenix.LiveView.ColocatedCSS` are handled.
77
88
You must add it to your `mix.exs` as:
99
@@ -30,5 +30,6 @@ defmodule Mix.Tasks.Compile.PhoenixLiveView do
3030

3131
defp compile do
3232
Phoenix.LiveView.ColocatedJS.compile()
33+
Phoenix.LiveView.ColocatedCSS.compile()
3334
end
3435
end

0 commit comments

Comments
 (0)