[Blazor] js-collocation - remove {EXTENSION} placeholder (#32336)

pull/32324/head
Robert Haken 2024-04-16 14:41:17 +02:00 committed by GitHub
parent e51cdd3777
commit 4836fc5be4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -2,11 +2,10 @@ Collocation of JavaScript (JS) files for Razor components is a convenient way to
Razor components of Blazor apps collocate JS files using the `.razor.js` extension and are publicly addressable using the path to the file in the project:
`{PATH}/{COMPONENT}.{EXTENSION}.js`
`{PATH}/{COMPONENT}.razor.js`
* The `{PATH}` placeholder is the path to the component.
* The `{COMPONENT}` placeholder is the component.
* The `{EXTENSION}` placeholder matches the extension of the component (`razor`).
When the app is published, the framework automatically moves the script to the web root. Scripts are moved to `bin/Release/{TARGET FRAMEWORK MONIKER}/publish/wwwroot/{PATH}/{COMPONENT}.razor.js`, where the placeholders are: