P粉6337331462023-08-30 09:55:39
This is the part of the documentation specific to Nuxt2, I quote
nuxt.config.js
export default { build: { extractCSS: true, optimization: { splitChunks: { cacheGroups: { styles: { name: 'styles', test: /\.(css|vue)$/, chunks: 'all', enforce: true } } } } } }
This part was not written directly, but is still available for Nuxt3, so I guess it should work in a similar way.
There is onlyone discussion on Nuxt3's repository, but you can start trying out the snippets already above to see if it meets some of your needs.