From 14dcac37c4ef76cdff757266f52c1444c19a2467 Mon Sep 17 00:00:00 2001 From: Florian Rappl Date: Sat, 23 Dec 2023 00:20:28 +0100 Subject: [PATCH] Improved publish to avoid trimming issues #128 --- src/Piral.Blazor.Core/PiletService.cs | 2 ++ src/Piral.Blazor.Tools/tasks/PublishPiletTask.cs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Piral.Blazor.Core/PiletService.cs b/src/Piral.Blazor.Core/PiletService.cs index 4c6fec9..b4c699f 100644 --- a/src/Piral.Blazor.Core/PiletService.cs +++ b/src/Piral.Blazor.Core/PiletService.cs @@ -135,7 +135,9 @@ public void AddEventListener(string type, Action handler) public void RemoveEventListener(string type, Action handler) { + #pragma warning disable 252 _listeners.RemoveAll(listener => listener.Type == type && listener.Reference == handler); + #pragma warning restore 252 } public void CallEventListeners(string type, JsonElement args) diff --git a/src/Piral.Blazor.Tools/tasks/PublishPiletTask.cs b/src/Piral.Blazor.Tools/tasks/PublishPiletTask.cs index bc9028c..09cdffd 100644 --- a/src/Piral.Blazor.Tools/tasks/PublishPiletTask.cs +++ b/src/Piral.Blazor.Tools/tasks/PublishPiletTask.cs @@ -109,7 +109,9 @@ private void RunPublish() RunPiralCli(target, $"pilet build"); // Replace with files from publish - CompareAndReplace(outdir, root); + // -- ignored for now as published artifacts might behave weird: + // -- https://github.com/smapiot/Piral.Blazor/issues/128 + // CompareAndReplace(outdir, root); // Pack and publish RunPiralCli(target, $"pilet pack");