Skip to content

Commit

Permalink
4
Browse files Browse the repository at this point in the history
  • Loading branch information
Штенгауэр Никита Дмитриевич committed Oct 28, 2023
1 parent 504c29c commit 3dd3ac9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MyOwnGame.Frontend/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
export default {
base: '/MyOwnGame/'
experimental: {
renderBuiltUrl(filename: string, { hostType }: { hostType: 'js' | 'css' | 'html' }) {
if (hostType === 'js') {
return { runtime: `window.__toCdnUrl(${JSON.stringify(filename)})` }
} else {
return { relative: true }
}
}
}
}

0 comments on commit 3dd3ac9

Please sign in to comment.