1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| // @ts-nocheck
| import { defineConfig } from 'vite';
| import vue from '@vitejs/plugin-vue';
| import path from 'path';
|
| export default defineConfig({
| plugins: [vue()],
| css: {
| postcss: path.resolve(__dirname, 'postcss.config.js')
| },
| server: {
| port: 3034, // 指定端口号为 3000
| strictPort: true, // 如果端口被占用,则抛出错误而不是尝试下一个可用端口
| host: true, // 允许通过ip访问,要不然平板测试不了
| // https: true
| },
| resolve: {
| alias: {
| '@': path.resolve(__dirname, 'src')
| }
| }
| });
|
|