diff --git a/helpers/vite-generate-sitemap.ts b/helpers/vite-generate-sitemap.ts index 5261787..dd6aa1d 100644 --- a/helpers/vite-generate-sitemap.ts +++ b/helpers/vite-generate-sitemap.ts @@ -59,6 +59,7 @@ function viteGenerateSitemap(): PluginOption { return { name: 'vite-plugin-sitemap', apply: 'build', + enforce: 'post', async closeBundle() { return generateSitemap(); },