Skip to content

Commit

Permalink
Patch HTML file before starting dev server (#271)
Browse files Browse the repository at this point in the history
The dev server is ran before the HTML file is patched with the new url of the globals file, resulting in: "Failed to load resource"
  • Loading branch information
shunceyb authored Jul 25, 2024
1 parent 1dff71b commit bc95a6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ module.exports.register = (program) => {
let containsFrontendLibApp = frontendlib.containsFrontendLibApp();
let argsOpt = "";

websocket.start({
frontendLibDev: containsFrontendLibApp
});

if(containsFrontendLibApp) {
frontendlib.runCommand('devCommand');
await frontendlib.waitForFrontendLibApp();
Expand All @@ -27,10 +31,6 @@ module.exports.register = (program) => {
filewatcher.start();
}

websocket.start({
frontendLibDev: containsFrontendLibApp
});

// Add additional process ARGs that comes after --
let parseStopIndex = process.argv.indexOf('--');
if(parseStopIndex != -1) {
Expand Down

0 comments on commit bc95a6c

Please sign in to comment.