Skip to content

Commit 57f0a6b

Browse files
authored
ignore inlining small assets for the svg sprite (#726)
1 parent 6f0f098 commit 57f0a6b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ export default defineConfig({
1414
external: [/node:.*/, 'stream', 'crypto', 'fsevents'],
1515
},
1616

17+
assetsInlineLimit: (source: string) => {
18+
if (source.endsWith('sprite.svg')) {
19+
return false;
20+
}
21+
},
22+
1723
sourcemap: true,
1824
},
1925
plugins: [

0 commit comments

Comments
 (0)