diff --git a/lib/wac_gen/components.ex b/lib/wac_gen/components.ex index 925c2954..57342f08 100644 --- a/lib/wac_gen/components.ex +++ b/lib/wac_gen/components.ex @@ -22,6 +22,9 @@ defmodule Wac.Gen.Components do source = Path.join([template_dir, file_name]) target = Path.join(["lib", web_snake_case, "components", file_name]) Mix.Generator.copy_template(source, target, assigns) - Code.format_file!(target) + + unless String.contains?(file_name, ".heex") do + Code.format_file!(target) + end end end