Implement the template

This commit is contained in:
Joseph Garrone
2021-03-02 01:05:15 +01:00
parent f92488b80d
commit 292881532a
7 changed files with 364 additions and 216 deletions

View File

@ -12,7 +12,7 @@ export function replaceImportFromStaticInJsCode(
const fixedJsCode = jsCode!.replace(
/"static\//g,
`window.${ftlValuesGlobalName}.url.resourcesPath.replace(/^\\//,"") + "/" + "static/`
`window.${ftlValuesGlobalName}.url.resourcesPath.replace(/^\\//,"") + "/build/static/`
);
return { fixedJsCode };
@ -75,7 +75,7 @@ export function generateCssCodeToDefineGlobals(
`--${cssVariableName}:`,
[
"url(",
"${url.resourcesPath}" +
"${url.resourcesPath}/build" +
cssGlobalsToDefine[cssVariableName].match(/^url\(([^)]+)\)$/)![1],
")"
].join("")