Skip to content

Guidance on integrating build generated files into Static Web Assets #36249

@maraf

Description

@maraf

[EDIT by guardrex to add the metadata]

Related

Files outside of wwwroot can be linked into wwwroot and thus picked up by SWA

<Content Include="generate\main.js" Link="wwwroot\main.js" CopyToOutputDirectory="PreserveNewest" />

We need to figure out which SWA target is ideal for hooking typescript (or any other custom) build onto.

Alternative approach, use Microsoft.VisualStudio.JavaScript.Sdk, eg https://github.com/microsoft/fluentui-blazor/blob/dev/src/Core.Assets/Microsoft.FluentUI.AspNetCore.Components.Assets.esproj. I'm not sure what's the preferred path.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions