diff --git a/src/plugins/vite/vite-minify-json-plugin.ts b/src/plugins/vite/vite-minify-json-plugin.ts index 9a0da184e1e..57130669075 100644 --- a/src/plugins/vite/vite-minify-json-plugin.ts +++ b/src/plugins/vite/vite-minify-json-plugin.ts @@ -35,6 +35,7 @@ export function minifyJsonPlugin(basePath: string | string[], recursive?: boolea return { name: "flx-minify-json", + apply: "build", configResolved(config) { buildDir = config.build.outDir; // Read the build output directory from Vite config },