Skip to content

Commit

Permalink
Re-include heex templates in tailwind config
Browse files Browse the repository at this point in the history
heex templates were accidentally removed from the tailwind config
in commit 89710c7
  • Loading branch information
Gazler committed Sep 25, 2023
1 parent 4ae17f3 commit ac34a89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion installer/templates/phx_assets/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
content: [
"./js/**/*.js",
"../lib/<%= @lib_web_name || @app_name %>.ex",
"../lib/<%= @lib_web_name || @app_name %>/**/*.ex"
"../lib/<%= @lib_web_name || @app_name %>/**/*.*ex"
],
theme: {
extend: {
Expand Down
2 changes: 1 addition & 1 deletion installer/test/phx_new_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ defmodule Mix.Tasks.Phx.NewTest do
assert_file("phx_blog/assets/css/app.css")
assert_file "phx_blog/assets/tailwind.config.js", fn file ->
assert file =~ "phx_blog_web.ex"
assert file =~ "phx_blog_web/**/*.ex"
assert file =~ "phx_blog_web/**/*.*ex"
end

assert_file("phx_blog/assets/vendor/heroicons/LICENSE.md")
Expand Down
2 changes: 1 addition & 1 deletion installer/test/phx_new_umbrella_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ defmodule Mix.Tasks.Phx.New.UmbrellaTest do

assert_file web_path(@app, "assets/tailwind.config.js"), fn file ->
assert file =~ "phx_umb_web.ex"
assert file =~ "phx_umb_web/**/*.ex"
assert file =~ "phx_umb_web/**/*.*ex"
end

assert_file(web_path(@app, "priv/static/favicon.ico"))
Expand Down
2 changes: 1 addition & 1 deletion installer/test/phx_new_web_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ defmodule Mix.Tasks.Phx.New.WebTest do

assert_file "testweb/assets/tailwind.config.js", fn file ->
assert file =~ "testweb.ex"
assert file =~ "testweb/**/*.ex"
assert file =~ "testweb/**/*.*ex"
end
end
end
Expand Down

0 comments on commit ac34a89

Please sign in to comment.