Skip to content

Commit

Permalink
Fix: Static web assets not found when debugging app
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyaulee committed May 30, 2024
1 parent 0e7bed2 commit 20a281c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ private static ITaskItem[] Process(string filePath, IEnumerable<string> excludeP
var processor = new JsonManifestProcessor(excludePaths);
processor.ReadFromFile(filePath);
processor.Process(outputPath);
processor.WriteToFile(filePath);
var output = processor.GetOutput()
.Select(staticWebAssetFile =>
new TaskItem(staticWebAssetFile.FilePath, new Dictionary<string, string>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let config;
let appJs;

async function beforeStart(options, extensions) {
const configUrl = `${url}content/browserextension.config.json`;
const configUrl = `${url}_content/browserextension.config.json`;
const configRequest = await fetch(configUrl);

config = await configRequest.json();
Expand Down
2 changes: 1 addition & 1 deletion src/Blazor.BrowserExtension/content/dist/CoreInternal.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class BrowserExtension {

async InitializeCoreAsync(blazorStartOptions) {
// import JsBind.Net JS
await import(`${this.Url}content/JsBind.Net/JsBindNet.js`);
await import(`${this.Url}_content/JsBind.Net/JsBindNet.js`);

if (this.Config.CompressionEnabled) {
// import brotli decode.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let appJs;
* @param {object} extensions Extensions added during publishing
*/
export async function beforeStart(options, extensions) {
const configUrl = `${url}content/browserextension.config.json`;
const configUrl = `${url}_content/browserextension.config.json`;
const configRequest = await fetch(configUrl);

/** @type {import("./Modules/BrowserExtensionConfig.js").default} */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class BrowserExtension {
*/
async InitializeCoreAsync(blazorStartOptions) {
// import JsBind.Net JS
await import(`${this.Url}content/JsBind.Net/JsBindNet.js`);
await import(`${this.Url}_content/JsBind.Net/JsBindNet.js`);

if (this.Config.CompressionEnabled) {
// import brotli decode.js
Expand Down

0 comments on commit 20a281c

Please sign in to comment.