Minor client packaging changes (#33787)
This commit is contained in:
parent
2dead48280
commit
e885a8f1ce
1 changed files with 8 additions and 2 deletions
|
|
@ -61,7 +61,13 @@ public static class ClientPackaging
|
|||
var graph = new RobustClientAssetGraph();
|
||||
pass.Dependencies.Add(new AssetPassDependency(graph.Output.Name));
|
||||
|
||||
AssetGraph.CalculateGraph(graph.AllPasses.Append(pass).ToArray(), logger);
|
||||
var dropSvgPass = new AssetPassFilterDrop(f => f.Path.EndsWith(".svg"))
|
||||
{
|
||||
Name = "DropSvgPass",
|
||||
};
|
||||
dropSvgPass.AddDependency(graph.Input).AddBefore(graph.PresetPasses);
|
||||
|
||||
AssetGraph.CalculateGraph([pass, dropSvgPass, ..graph.AllPasses], logger);
|
||||
|
||||
var inputPass = graph.Input;
|
||||
|
||||
|
|
@ -72,7 +78,7 @@ public static class ClientPackaging
|
|||
new[] { "Content.Client", "Content.Shared", "Content.Shared.Database" },
|
||||
cancel: cancel);
|
||||
|
||||
await RobustClientPackaging.WriteClientResources(contentDir, pass, cancel);
|
||||
await RobustClientPackaging.WriteClientResources(contentDir, inputPass, cancel);
|
||||
|
||||
inputPass.InjectFinished();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue