Skip to content

Commit

Permalink
Disable asset inlining (#1858)
Browse files Browse the repository at this point in the history
This ensures vite doesn't inline any assets. Inlining assets (like small
fonts) causes CSP issues.
  • Loading branch information
nmattia authored Sep 8, 2023
1 parent 90e7ce2 commit 501bdda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default defineConfig(({ mode }: UserConfig): UserConfig => {
alias: aliasConfig,
},
build: {
assetsInlineLimit: 0,
outDir: "../../dist",
emptyOutDir: true,
rollupOptions: {
Expand Down

0 comments on commit 501bdda

Please sign in to comment.