Skip to content

[Nuxt] Change nuxt.hook usage to Vite config hook #19345

@s1gr1d

Description

@s1gr1d

The Nuxt lifecycle hook vite:extendConfig is deprecated (we are currently using this one in the repo).

Instead, config from Vite should be used:

If you're writing code that needs to access resolved Vite configuration, you should use the config and configResolved hooks within your Vite plugin, rather than using Nuxt's vite:extend, vite:extendConfig and vite:configResolved.

Reference: nuxt/nuxt@31c5f26

Metadata

Metadata

Assignees

Labels

javascriptPull requests that update javascript code

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions