Update vite config for better deployment
This commit is contained in:
parent
fbfecbe4f6
commit
92c47beafa
1 changed files with 12 additions and 0 deletions
|
@ -7,6 +7,18 @@ import projInfo from "./src/data/projInfo.json";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
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: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
vueJsx({
|
vueJsx({
|
||||||
|
|
Loading…
Reference in a new issue