From 36a81cf71fedea396d7e7f9492871466857b72f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81=C4=99picki?= Date: Fri, 24 Jan 2025 10:18:23 +0100 Subject: [PATCH] Allow running phx.digest.clean task multiple times See https://github.com/phoenixframework/phoenix/issues/5752#issuecomment-2612036847 --- lib/mix/tasks/phx.digest.clean.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mix/tasks/phx.digest.clean.ex b/lib/mix/tasks/phx.digest.clean.ex index 9f5347aac3..7426add65a 100644 --- a/lib/mix/tasks/phx.digest.clean.ex +++ b/lib/mix/tasks/phx.digest.clean.ex @@ -46,6 +46,8 @@ defmodule Mix.Tasks.Phx.Digest.Clean do Mix.Task.run("compile", all_args) end + Mix.Task.reenable("phx.digest.clean") + {:ok, _} = Application.ensure_all_started(:phoenix) {opts, _, _} = OptionParser.parse(all_args, switches: @switches, aliases: [o: :output])