Skip to content

Commit ccbc46c

Browse files
Fix RCL template to have correct filename for scoped CSS (#25870)
1 parent 472e829 commit ccbc46c

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"exclude": [
3434
"_Imports.razor",
3535
"Component1.razor",
36+
"Component1.razor.css",
3637
"ExampleJsInterop.cs",
3738
"wwwroot/**"
3839
]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.my-component {
2+
border: 2px dashed red;
3+
padding: 1em;
4+
margin: 1em 0;
5+
background-image: url('background.png');
6+
}

src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/wwwroot/styles.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)