fix(graph): properly remove <base> tag when generating static graph file (#23399)
This commit is contained in:
parent
c4343948ca
commit
5221103242
@ -444,7 +444,7 @@ export async function generateGraph(
|
|||||||
);
|
);
|
||||||
html = html.replace(/src="/g, 'src="static/');
|
html = html.replace(/src="/g, 'src="static/');
|
||||||
html = html.replace(/href="styles/g, 'href="static/styles');
|
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, '');
|
html = html.replace(/type="module"/g, '');
|
||||||
|
|
||||||
writeFileSync(fullFilePath, html);
|
writeFileSync(fullFilePath, html);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user