From 7d380216d120349d4a52b831c811d916cb4f619d Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Wed, 13 Jul 2022 23:57:11 -0500 Subject: [PATCH] Update vite config for better deployment --- vite.config.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index a24358e..5d1c6a8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,6 +7,18 @@ import projInfo from "./src/data/projInfo.json"; // https://vitejs.dev/config/ export default defineConfig({ + base: "./", + build: { + rollupOptions: { + output:{ + manualChunks(id) { + if (id.includes('node_modules')) { + return id.toString().split('node_modules/')[1].split('/')[0].toString(); + } + } + } + } + }, plugins: [ vue(), vueJsx({