Skip to content

[Static Web Assets] Introduce static web asset endpoints and define compression endpoints #39636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

javiercn
Copy link
Member

No description provided.

@ghost ghost added Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member labels Mar 20, 2024
@javiercn javiercn force-pushed the javiercn/static-web-assets-endpoints branch 2 times, most recently from d3c0ec7 to 22e196c Compare April 3, 2024 08:07
@javiercn javiercn marked this pull request as ready for review April 3, 2024 08:07
@pavelsavara
Copy link
Member

Is there way how to test this with runtime WBT and Blazor E2E before we merge this ?
What kind of problems could appear if not?

string assetKey = asset.ItemSpec;
assetDictionary[assetKey] = asset;
string relatedAsset = asset.GetMetadata("RelatedAsset");
if (!string.IsNullOrEmpty(relatedAsset) && !assetDictionary.ContainsKey(relatedAsset))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this happen in second pass over SWA in case where RelatedAsset points to a different asset? Is that possible? If not, do we need the dictionary?

@javiercn javiercn force-pushed the javiercn/static-web-assets-endpoints branch from 869c68e to 2a7ed85 Compare April 4, 2024 17:59
@maraf maraf self-requested a review April 5, 2024 09:07
@javiercn javiercn force-pushed the javiercn/static-web-assets-endpoints branch from dc5c78f to 9fcaf87 Compare April 5, 2024 11:09
@javiercn javiercn requested a review from MackinnonBuck April 10, 2024 14:44
@javiercn javiercn force-pushed the javiercn/static-web-assets-endpoints branch 3 times, most recently from 8792704 to b0b30c9 Compare April 18, 2024 15:37
@javiercn javiercn force-pushed the javiercn/static-web-assets-endpoints branch from b0b30c9 to 04f22f6 Compare April 18, 2024 16:01
@javiercn javiercn force-pushed the javiercn/static-web-assets-endpoints branch from fe7a3a2 to 97b346e Compare April 18, 2024 18:04
@javiercn javiercn merged commit a4add5d into main Apr 18, 2024
16 checks passed
@pavelsavara
Copy link
Member

pavelsavara commented May 16, 2025

@javiercn @maraf this PR introduces filesToIgnore -> blazorwasm.staticwebassets.endpoints.json exception for breaking the incremental build in WasmBuildIncrementalismTest.

I now have same problem with blazorwasm.runtimeconfig.json on #48916

I wonder if we have good excuse for not testing changes in those files and if I could use the same excuse.

Or is this a GOTCHA ?

I filled dotnet/runtime#115646 to unblock myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants