Skip to content
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

Blazor bundling and resources #10

Closed
TimoSalomaki opened this issue Jun 4, 2019 · 5 comments
Closed

Blazor bundling and resources #10

TimoSalomaki opened this issue Jun 4, 2019 · 5 comments
Assignees

Comments

@TimoSalomaki
Copy link
Contributor

The Built-In Themes article mentions that the way Blazor handles bundling and resources is still unclear. However, it looks like Microsoft has now finalized the implementation and closed the relevant issue.

As far as I understood, the documentation on their side is still not up to date so it might make sense to wait a bit instead of relying on all the scattered information in that message chain.

@marin-bratanov marin-bratanov self-assigned this Jun 4, 2019
@marin-bratanov
Copy link
Contributor

Thank you for reaching out.

Yes, there are indications on how this will work, and we will wait for them to release the code, so we can actually play with it, and perhaps for them to ship some docs.

This is definitely on our radar, and we will document it as soon as it gets implemented in the actual codebase (after Preview 6).

@marin-bratanov
Copy link
Contributor

The JS Interop file will be included as an asset from our package for the upcoming 1.2.0 release. The themes - not yet, as that requires much more work and consideration.

For the time being, the themes will keep being served through the CDN listed in the article, and when there is a change or a new way, I will update that article.

I will now close this issue through 58ed051, 2243029 and b749b28, though.

@marin-bratanov
Copy link
Contributor

A quick update - we just found some framework issues - purely client-side apps can't work with static assets and asp.net core hosted client apps need additional config 5597ce1.

@TimoSalomaki
Copy link
Contributor Author

Thanks for the update Marin, interesting development.

@marin-bratanov
Copy link
Contributor

Personally, I'm a little disappointed at how uncomfortable it is - enabling the static assets is an explicit step you must make, and it does not work at all for pure client Blazor apps. Let's hope it gets improved through dotnet/aspnetcore#10986

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants