Update vite config for better deployment

This commit is contained in:
thepaperpilot 2022-07-13 23:57:11 -05:00
parent 38e495fe01
commit 7d380216d1

View file

@ -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({