Skip to content

Commit

Permalink
build(frontend): fix svg sprite icons not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitdalal committed May 9, 2024
1 parent 6793e85 commit a54e359
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export default defineConfig({
external: [/node:.*/, 'stream', 'crypto', 'fsevents'],
},

assetsInlineLimit: (source: string) => {
if (source.endsWith('sprite.svg')) {
return false
}
},

sourcemap: true,
},
plugins: [
Expand Down

0 comments on commit a54e359

Please sign in to comment.