Skip to content

Commit c8d548c

Browse files
authored
Set copyOnly on static resources in Blazor templates (#33808)
1 parent 65276b0 commit c8d548c

File tree

2 files changed

+11
-0
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content

2 files changed

+11
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
],
2626
"sources": [
2727
{
28+
"source": "./",
29+
"target": "./",
30+
"exclude": [
31+
".template.config/**"
32+
],
33+
"copyOnly": [
34+
"wwwroot/**"
35+
],
2836
"modifiers": [
2937
{
3038
"condition": "(!IndividualLocalAuth || UseLocalDB)",

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

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
"exclude": [
5555
".template.config/**"
5656
],
57+
"copyOnly": [
58+
"**/wwwroot/**"
59+
],
5760
"modifiers": [
5861
{
5962
"condition": "(!Hosted)",

0 commit comments

Comments
 (0)