Skip to content

Publish blazor.*.js files to npm #10124

Open
@mike1o1

Description

@mike1o1

I'm working on implementing some server-side Blazor components, but I have a lot of other Javascript functionality on the page. I would like to be able to include the needed blazor.server.js file in my webpack build process, instead of having to embed it directly on the page. This way all of the Javascript for my application gets included in one file.

I would like to be able to bundle blazor.server.js into my webpack build, by either accessing it through NPM or being able to link to it directly. However, according to dotnet/AspNetCore.Docs#12358 this is an embedded resource in the middleware, so I'm not sure how I can access it and include it in my build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsThis issue tracks updating documentationPillar: Technical DebtPriority:2Work that is important, but not critical for the releaseaffected-fewThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-jsinteropThis issue is related to JSInterop in Blazorseverity-minorThis label is used by an internal tooltask

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions