19 lines
504 B

import { defineConfig } from "vite";
import reactRefresh from "@vitejs/plugin-react-refresh";
import WindiCSS from "vite-plugin-windicss";
const { resolve } = require("path");
// https://vitejs.dev/config/
export default defineConfig({
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "@/assets/style/global.scss";`,
},
},
},
resolve: {
alias: [{ find: "@", replacement: resolve(__dirname, "src") }],
},
plugins: [WindiCSS(), reactRefresh()],
});