From 8841aa6e8127c38d54235b35f34ab5425ececc3c Mon Sep 17 00:00:00 2001 From: Branko Zachemsky Date: Tue, 5 Sep 2023 10:46:32 +0200 Subject: [PATCH] Add notes.md --- src/notes.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/notes.md diff --git a/src/notes.md b/src/notes.md new file mode 100644 index 000000000..4690e51ad --- /dev/null +++ b/src/notes.md @@ -0,0 +1,18 @@ +# Using Assets in package + +When working with static assets in a Blazor package project(bootstap icons, images, styles, ...), for proper function need to be reference like: `_content/{PACKAGE ID}/{PATH AND FILE NAME}`. + +For example: + +~~~ HTML + +~~~ + +NOT only direct reference, as this approach may not function correctly when you're utilizing assets outside of the default project. + +~~~ HTML + +~~~ + +For more information, refer Microsoft documentation: +[Microsoft docs](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/class-libraries?view=aspnetcore-6.0&tabs=visual-studio#create-an-rcl-with-static-assets-in-the-wwwroot-folder) \ No newline at end of file