You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
473 B
TypeScript

import { defineConfig } from "vite";
import postcssConfig from "./postcss.config";
import uni from "@dcloudio/vite-plugin-uni";
import uvtw from "@uni-helper/vite-plugin-uni-tailwind";
// https://vitejs.dev/config/
export default defineConfig({
css: {
postcss: postcssConfig,
},
plugins: [uni(), uvtw()],
server: {
host: "0.0.0.0", // 这个用于启动
port: 8092, // 指定启动端口
open: true, //启动后是否自动打开浏览器
},
});