Skip to content

Commit

Permalink
fix: skip inline html (#8789)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jun 26, 2022
1 parent b7d268b commit 4a6408b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/plugins/asset.ts
Expand Up @@ -383,6 +383,7 @@ async function fileToBuiltUrl(
if (
config.build.lib ||
(!file.endsWith('.svg') &&
!file.endsWith('.html') &&
content.length < Number(config.build.assetsInlineLimit))
) {
const mimeType = mrmime.lookup(file) ?? 'application/octet-stream'
Expand Down

0 comments on commit 4a6408b

Please sign in to comment.