Skip to content

Commit 6a99902

Browse files
committed
feat: 支持多配置
1 parent da8b261 commit 6a99902

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tools/BootstrapBlazor.CssBundler/BundlerOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ sealed class BundlerOptions
1313

1414
public List<string> InputFiles { get; set; } = [];
1515

16-
public static BundlerOptions LoadFromConfigFile(string configFile)
16+
public static List<BundlerOptions> LoadFromConfigFile(string configFile)
1717
{
1818
var json = File.ReadAllText(configFile);
1919

20-
return JsonSerializer.Deserialize<BundlerOptions>(json, JsonSerializerOptions.Web) ?? new();
20+
return JsonSerializer.Deserialize<List<BundlerOptions>>(json, JsonSerializerOptions.Web) ?? new();
2121
}
2222
}

0 commit comments

Comments
 (0)