[Bug] Update vite-minify-json-plugin.ts (#3238)

Fix minify Jain plugin running in vite serve mode
This commit is contained in:
flx-sta 2024-07-30 07:09:09 -07:00 committed by GitHub
parent 5b4a24824f
commit 0b9d9b5638
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
},