Skip to content

Commit

Permalink
fix: fix path issue on "es" modules usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Apr 5, 2019
1 parent 0a7aea1 commit f59a531
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/dnb-ui-lib/scripts/prepub/tasks/makeLibModules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f59a531

Please sign in to comment.