diff --git a/packages/dnb-ui-lib/scripts/prepub/tasks/makeLibModules.js b/packages/dnb-ui-lib/scripts/prepub/tasks/makeLibModules.js index 0e35c9913ce..359e1ec0aef 100644 --- a/packages/dnb-ui-lib/scripts/prepub/tasks/makeLibModules.js +++ b/packages/dnb-ui-lib/scripts/prepub/tasks/makeLibModules.js @@ -127,11 +127,11 @@ const transformContentRevertForES = content => { if (/\.min\.css/.test(content)) { content = content.replace(new RegExp('/(.*).min.css', 'g'), '/$1.css') } - // if (new RegExp('../../').test(content)) { - // content = content.replace( - // new RegExp('../../(.*).css', 'g'), - // '../../../$1.css' - // ) - // } + if (new RegExp('../../').test(content)) { + content = content.replace( + new RegExp("'../../icons/", 'g'), + "'../../../icons/" + ) + } return content }