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)

(cherry picked from commit 5221103)
  • Loading branch information
MaxKless authored and FrozenPandaz committed May 15, 2024
1 parent 3bf0a25 commit 4dbfea7
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 4dbfea7

Please sign in to comment.