2
votes

I am learning Blazor and I noticed it is a nice practice to create Razor Class Library where you are going to define majority of your components so you can use those either in client or server without too much issues. In different frameworks I've got used to include libraries as bootstrap in SASS form so I can use it in my components and I can easily adjust styles instead of editing resulting CSS. So I was thinking it would be good idea to include Bootstrap SASS into the Razor Class Library that is going to be later used in either server or client solutions however I do not see a dropdown or other way to add client side library into Razor Class Library. Is there a way around it or it has to be added only to the projects that is going to be referring it? This would be silly since I would have to duplicate the work to customize Bootstrap.

1

1 Answers

1
votes

To add statics assets such as js libraries or css to a Blazor components library add them in the wwwroot folder, this work the same way than Razor class libraries: