Compare commits

...

2 Commits

Author SHA1 Message Date
293953aa1b Update changelog v0.3.6 2021-03-22 19:02:53 +00:00
1049e312f9 Fix previous release 2021-03-22 20:00:58 +01:00
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
### **0.3.6** (2021-03-22)
- Fix previous release
### **0.3.5** (2021-03-22)
- support homepage with urlPath

View File

@ -1,6 +1,6 @@
{
"name": "keycloakify",
"version": "0.3.5",
"version": "0.3.6",
"description": "Keycloak theme generator for Reacts app",
"repository": {
"type": "git",

View File

@ -11,8 +11,8 @@ export function replaceImportFromStaticInJsCode(
const { jsCode, ftlValuesGlobalName } = params;
const fixedJsCode = jsCode!.replace(
/ [^ ]+"static\//g,
` window.${ftlValuesGlobalName}.url.resourcesPath + "/build/static/`
/[a-z]+\.[a-z]+\+"static\//g,
`window.${ftlValuesGlobalName}.url.resourcesPath + "/build/static/`
);
return { fixedJsCode };