From 416032ebc040e12a40a31916a6f6bf6ffb6e5c77 Mon Sep 17 00:00:00 2001 From: XiNGRZ Date: Sat, 23 Mar 2024 22:35:08 +0800 Subject: [PATCH] Split 3rd-party libs to separated assets --- vite.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index a51171b..d9e3244 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,4 +1,4 @@ -import { defineConfig } from 'vite'; +import { defineConfig, splitVendorChunkPlugin } from 'vite'; import vue from '@vitejs/plugin-vue'; import { resolve } from 'path'; @@ -10,5 +10,6 @@ export default defineConfig({ }, plugins: [ vue(), + splitVendorChunkPlugin(), ], });