Skip to content

Commit

Permalink
Prune phoenix.css on install from app.css. Closes phoenixframework#8
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jan 5, 2022
1 parent 1260ad9 commit c7e0875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tailwind.ex
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ defmodule Tailwind do
@import "tailwindcss/components";
@import "tailwindcss/utilities";
#{app_css}
#{String.replace(app_css, ~s|@import "./phoenix.css";\n|, "")}
""")
end

Expand Down
1 change: 1 addition & 0 deletions test/tailwind_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ defmodule TailwindTest do

test "install on existing app.css" do
File.write!("assets/css/app.css", """
@import "./phoenix.css";
body {
}
""")
Expand Down

0 comments on commit c7e0875

Please sign in to comment.