Is it possible to embed a Blazor component in a non .NET website?

前端 未结 2 1650
独厮守ぢ
独厮守ぢ 2021-01-05 08:32

We would like to develop a client-side Blazor component for one of our clients to embed on a page in their website. The website is written with Drupal, but really my questi

2条回答
  •  天命终不由人
    2021-01-05 09:18

    Yes. This is possible. Once you publish client-side Blazor application using dotnet publish resulting files can be served from any static file hosting. For example you could serve the results using http-server . from the folder where results are published.

    To control appearance where Blazor application would be visible in the final HTML application, you can augment index.html as you see fit. tag would be replaced by Blazor application.

提交回复
热议问题