We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f23949e commit 96db533Copy full SHA for 96db533
1 file changed
scripts/storybook-build.mjs
@@ -54,5 +54,18 @@ htmlFile =
54
)
55
}
56
57
+{
58
+ // For oss.sufeni.id/carbon-react-native
59
+ // fix all the assets and stylesheets href with forward slash
60
+
61
+ const hrefRegex = new RegExp(/\.\//g)
62
63
+ htmlFile =
64
+ htmlFile.replace(
65
+ hrefRegex,
66
+ "./carbon-react-native/",
67
+ )
68
+}
69
70
node_fs.promises.writeFile(htmlFilePath, htmlFile)
71
node_fs.promises.writeFile(iframeHtmlFilePath, iframeHtmlFile)
0 commit comments