From e7728696c8d41c454ca3db0193af1736c6c32540 Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Mon, 5 Jan 2026 11:47:46 -0600 Subject: [PATCH] chore(vite): add asset cleanup before build to prevent accumulation of old files --- vite.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.js b/vite.config.js index 1bde217..4747441 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,14 @@ import path from "path"; +import fs from "fs"; import vue from "@vitejs/plugin-vue"; import vuetify from "vite-plugin-vuetify"; +// Purge old assets before build to prevent accumulation +const assetsDir = path.join(__dirname, "meshchatx", "public", "assets"); +if (fs.existsSync(assetsDir)) { + fs.rmSync(assetsDir, { recursive: true, force: true }); +} + export default { plugins: [vue(), vuetify()],