We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c56feb commit 6e793c6Copy full SHA for 6e793c6
packages/ui/vite.config.ts
@@ -80,6 +80,17 @@ export const config: UserConfig = {
80
// return html.replace('<!-- !LOAD_METADATA! -->', `<script>window.METADATA_PATH="${debugLink}/html.meta.json.gz"</script>`)
81
// },
82
83
+ {
84
+ // workaround `crossorigin` issues on some browsers
85
+ // https://github.com/vitejs/vite/issues/6648
86
+ name: 'no-crossorigin-for-same-assets',
87
+ apply: 'build',
88
+ transformIndexHtml(html) {
89
+ return html
90
+ .replace('crossorigin src="./assets/', 'src="./assets/')
91
+ .replace('crossorigin href="./assets/', 'href="./assets/')
92
+ },
93
94
],
95
build: {
96
outDir: './dist/client',
0 commit comments