From 6a9990201694480c6020e4088ec94794083281b0 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 7 Oct 2025 19:28:59 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E5=A4=9A?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/BootstrapBlazor.CssBundler/BundlerOptions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/BootstrapBlazor.CssBundler/BundlerOptions.cs b/src/tools/BootstrapBlazor.CssBundler/BundlerOptions.cs index 6a545a84..c8569952 100644 --- a/src/tools/BootstrapBlazor.CssBundler/BundlerOptions.cs +++ b/src/tools/BootstrapBlazor.CssBundler/BundlerOptions.cs @@ -13,10 +13,10 @@ sealed class BundlerOptions public List InputFiles { get; set; } = []; - public static BundlerOptions LoadFromConfigFile(string configFile) + public static List LoadFromConfigFile(string configFile) { var json = File.ReadAllText(configFile); - return JsonSerializer.Deserialize(json, JsonSerializerOptions.Web) ?? new(); + return JsonSerializer.Deserialize>(json, JsonSerializerOptions.Web) ?? new(); } } From 5c6c2342412083e83a9263bfefb5a9d7487cdc26 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 7 Oct 2025 19:29:07 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E5=A4=9A?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/BootstrapBlazor.CssBundler/Bundler.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/tools/BootstrapBlazor.CssBundler/Bundler.cs b/src/tools/BootstrapBlazor.CssBundler/Bundler.cs index 9e059b41..bece4236 100644 --- a/src/tools/BootstrapBlazor.CssBundler/Bundler.cs +++ b/src/tools/BootstrapBlazor.CssBundler/Bundler.cs @@ -2,6 +2,8 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ +using System.Text; + namespace BootstrapBlazor.CssBundler; internal class Bundler @@ -30,8 +32,16 @@ public static void Run(string[] args) static void BundlerCore(string bundlerFile) { - var option = BundlerOptions.LoadFromConfigFile(bundlerFile); + var options = BundlerOptions.LoadFromConfigFile(bundlerFile); + + foreach (var option in options) + { + DoBundler(bundlerFile, option); + } + } + static void DoBundler(string bundlerFile, BundlerOptions option) + { if (string.IsNullOrEmpty(option.OutputFileName)) { return; @@ -58,7 +68,8 @@ static void BundlerCore(string bundlerFile) } using var reader = File.OpenText(inputFile); - reader.BaseStream.CopyTo(writer); + var content = reader.ReadToEnd(); + writer.Write(Encoding.UTF8.GetBytes(content)); reader.Close(); } writer.Close(); From dacb66121b53a77bb848f00df41ca77a9f2d0d8b Mon Sep 17 00:00:00 2001 From: Argo Date: Thu, 9 Oct 2025 15:38:34 +0800 Subject: [PATCH 3/3] chore: bump version 1.0.1 --- .../BootstrapBlazor.CssBundler.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/BootstrapBlazor.CssBundler/BootstrapBlazor.CssBundler.csproj b/src/tools/BootstrapBlazor.CssBundler/BootstrapBlazor.CssBundler.csproj index 40de8d43..e62f48db 100644 --- a/src/tools/BootstrapBlazor.CssBundler/BootstrapBlazor.CssBundler.csproj +++ b/src/tools/BootstrapBlazor.CssBundler/BootstrapBlazor.CssBundler.csproj @@ -1,7 +1,7 @@  - 1.0.0 + 1.0.1 Exe net9.0 enable