Skip to content

Commit 4a6408b

Browse files
authoredJun 26, 2022
fix: skip inline html (#8789)
1 parent b7d268b commit 4a6408b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/vite/src/node/plugins/asset.ts

+1
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ async function fileToBuiltUrl(
383383
if (
384384
config.build.lib ||
385385
(!file.endsWith('.svg') &&
386+
!file.endsWith('.html') &&
386387
content.length < Number(config.build.assetsInlineLimit))
387388
) {
388389
const mimeType = mrmime.lookup(file) ?? 'application/octet-stream'

0 commit comments

Comments
 (0)
Please sign in to comment.