Skip to content

Commit 4dbfea7

Browse files
MaxKlessFrozenPandaz
authored andcommitted
fix(graph): properly remove <base> tag when generating static graph file (#23399)
(cherry picked from commit 5221103)
1 parent 3bf0a25 commit 4dbfea7

File tree

1 file changed

+1
-1
lines changed
  • packages/nx/src/command-line/graph

1 file changed

+1
-1
lines changed

packages/nx/src/command-line/graph/graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ export async function generateGraph(
444444
);
445445
html = html.replace(/src="/g, 'src="static/');
446446
html = html.replace(/href="styles/g, 'href="static/styles');
447-
html = html.replace('<base href="/" />', '');
447+
html = html.replace(/<base href="\/".*>/g, '');
448448
html = html.replace(/type="module"/g, '');
449449

450450
writeFileSync(fullFilePath, html);

0 commit comments

Comments
 (0)