Skip to content

Commit

Permalink
fix(graph): properly remove <base> tag when generating static graph file
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed May 15, 2024
1 parent 38a947f commit fd5f345
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 fd5f345

Please sign in to comment.