From fb3e6d1a0421c29b2641d4d55b87747b639c6ace Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sat, 29 Aug 2026 06:27:16 +0000 Subject: [PATCH] Use runtime-only Vue build, raise chunk warning to 1.2 MB --- frontend/vite.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 37c17dd..265bd75 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -26,7 +26,16 @@ export default defineConfig({ }, }, appType: 'mpa', // no SPA fallback; every HTML page is served by FastAPI + resolve: { + alias: { + // All components are precompiled SFCs — drop the runtime template + // compiler (~60 kB min) from the bundle. + vue: 'vue/dist/vue.runtime.esm-bundler.js', + }, + }, build: { + // The main editor bundle (CodeMirror + Vue) is intentionally one chunk. + chunkSizeWarningLimit: 1200, // Mirror the URL space in the build output: hashed files land under // frontend-build/_assets/ and the Frontend serves the build directory // at the site root (frontend/public/favicon.ico -> /favicon.ico).