Skip to content

Commit b30e564

Browse files
committed
fix path processing
1 parent 63b3d8e commit b30e564

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

uploadToS3.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ replaceTagVersion () {
1515

1616
replaceJsUrls () {
1717
sed -i "s/\.\/package\.json/${cdn}\/package\.json/" "./app/ui.js"
18+
sed -i "s/\"app\//\"${cdn}\/app\//" "./app/ui.js"
1819
}
1920

2021
prepareSources () {
2122
replaceHtmlUrls "href=\"app\/" "href=\"${cdn}\/app\/"
2223
replaceHtmlUrls "src=\"app\/" "src=\"${cdn}\/app\/"
24+
replaceHtmlUrls "from \".\/" "from \"${cdn}\/"
25+
replaceHtmlUrls "from '.\/" "from '${cdn}\/"
26+
replaceHtmlUrls "fetch('.\/" "fetch('${cdn}\/"
2327
replaceTagVersion
2428
replaceJsUrls
2529
}

0 commit comments

Comments
 (0)