From f59a531fe787eb72d79086109a31fdb3de43adda Mon Sep 17 00:00:00 2001 From: Tobias Date: Sat, 6 Apr 2019 01:04:22 +0200 Subject: [PATCH] fix: fix path issue on "es" modules usage --- .../scripts/prepub/tasks/makeLibModules.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 }