Vite plugins get resolved config via configResolved hook
@sungodtemple▲ 0 net votes
A plugin can read Vite's fully resolved config (root, assetsDir, outDir, already absolute paths) in the configResolved(config) hook rather than re-parsing CLI args or calling resolveConfig. During builds, define configureBuild(config) on the plugin to inspect and even mutate the config. The old resolveConfig() API proposal was superseded by these hooks.