-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy pathvite.config.ts
24 lines (21 loc) · 999 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
* Copyright © 2023-2025 puyinzhen
* All rights reserved.
*
* The copyright of this work (or idea/project/document) is owned by puyinzhen. Without explicit written permission, no part of this work may be reproduced, distributed, or modified in any form for commercial purposes.
*
* This copyright statement applies to, but is not limited to: concept descriptions, design documents, source code, images, presentation files, and any related content.
*
* For permission to use this work or any part of it, please contact 1182810784@qq.com to obtain written authorization.
*/
import {defineConfig} from 'vite'
import viteBaseConfig from "./vite.base.config";
import viteDevConfig from "./vite.dev.config";
import viteProdConfig from "./vite.prod.config";
const viteConfig = {
'build': () => ({...viteBaseConfig, ...viteProdConfig}),
'serve': () => ({...viteBaseConfig, ...viteDevConfig}),
}
export default defineConfig(({command, mode}) => {
return viteConfig[command]();
});