/* * @LastEditors: John * @Date: 2024-06-17 17:20:03 * @LastEditTime: 2024-06-19 17:41:43 * @Author: John */ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import path from "path"; import viteCompression from "vite-plugin-compression"; import { nodePolyfills } from "vite-plugin-node-polyfills"; // https://vitejs.dev/config/ export default defineConfig({ server: { host: "192.168.10.167", }, plugins: [ react(), viteCompression({ deleteOriginFile: false }), nodePolyfills(), ], resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, css: {}, });