Skip to content

How is the new Blazor Bundling system work? #22369

Closed Answered by mavado83
mavado83 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I tried to move the Contributors from Blazor.Client to Blazor and got good results.

What I changed:

  • Move the ConfigureBundles from Blazor.Client to the Blazor project
  • Move the Contributor classes from Blazor.Client to Blazor
  • The .css files and .js files stay within the wwwroot folder from the Blazor.Client project
public override void ConfigureServices(ServiceConfigurationContext context)
{
    //https://github.com/dotnet/aspnetcore/issues/52530
    Configure<RouteOptions>(options =>
    {
        options.SuppressCheckForUnhandledSecurityMetadata = true;
    });

    // Add services to the container.
    context.Services.AddRazorComponents()
        .AddInteractiveWebAssemblyCompone…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@maliming
Comment options

@maliming
Comment options

@maliming
Comment options

@mavado83
Comment options

Answer selected by maliming
Comment options

You must be logged in to vote
1 reply
@maliming
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants