mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
perf(schema): only inline styles for vue components (#30305)
This commit is contained in:
parent
e09b1d6659
commit
c752ee1514
@ -59,8 +59,8 @@ export default defineUntypedSchema({
|
||||
if (val === false || (await get('dev')) || (await get('ssr')) === false || (await get('builder')) === '@nuxt/webpack-builder') {
|
||||
return false
|
||||
}
|
||||
// Enabled by default for vite prod with ssr
|
||||
return val ?? true
|
||||
// Enabled by default for vite prod with ssr (for vue components)
|
||||
return val ?? ((id: string) => id && id.includes('.vue'))
|
||||
},
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user