Skip to content

Commit

Permalink
fix(graph): properly remove <base> tag when generating static graph f…
Browse files Browse the repository at this point in the history
…ile (#23399)
  • Loading branch information
MaxKless authored May 15, 2024
1 parent c434394 commit 5221103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/command-line/graph/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export async function generateGraph(
);
html = html.replace(/src="/g, 'src="static/');
html = html.replace(/href="styles/g, 'href="static/styles');
html = html.replace('<base href="/" />', '');
html = html.replace(/<base href="\/".*>/g, '');
html = html.replace(/type="module"/g, '');

writeFileSync(fullFilePath, html);
Expand Down

0 comments on commit 5221103

Please sign in to comment.