-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
34 lines (31 loc) · 991 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
25
26
27
28
29
30
31
32
33
34
/*
* Copyright (c) 2024. All rights reserved.
* This source code is licensed under the CC BY-NC-SA
* (Creative Commons Attribution-NonCommercial-NoDerivatives) License, By Xiao Songtao.
* This software is protected by copyright law. Reproduction, distribution, or use for commercial
* purposes is prohibited without the author's permission. If you have any questions or require
* permission, please contact the author: 2207150234@st.sziit.edu.cn
*/
import {fileURLToPath, URL} from 'node:url'
import {defineConfig} from 'vite'
import {viteMockServe} from "vite-plugin-mock";
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
viteMockServe({
mockPath: './src/mock'
})
],
server: {
host: '0.0.0.0',
port: 7265,
open: true
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})