18 lines
473 B
TypeScript
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, //启动后是否自动打开浏览器
|
|
},
|
|
});
|