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

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