The following vite config inside nuxt.config.ts
prevents small assets from being inlined.
// nuxt.config.ts
export default defineNuxtConfig({
vite: {
build: {
assetsInlineLimit: 0, // This will prevent inlining of any assets
},
},
})