diff --git a/src/client/build.js b/src/client/build.js index 066f05b35f..181ffc7e91 100644 --- a/src/client/build.js +++ b/src/client/build.js @@ -107,19 +107,34 @@ async function setBuildTempToUI() { if (err) { console.log(err); } - let updateData = ""; + let updateData = data; + // I want to remove the first "/" for href="/css", href="/js", href="/img", href="/favicon", src="/assets" or src="/js" + const regexPaths = /href="\/(css|js|img|favicon)|src="\/(assets|js)/g; + updateData = data.replace(regexPaths, (match) => { + return match.replace("/", ""); + }); + + // For each - - - - - - -
- -