import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";

/* eslint-disable */
// https://vite.dev/config/
export default defineConfig({
    plugins: [vue(),],
    resolve: {
            //配置别名
            alias: [
                {
                    find: /^~/,
                    replacement: "",
                },
                {
                    find: "@",
                    replacement: path.resolve( __dirname, "src" ),
                },
            ],
        },
    css: {
        preprocessorOptions: {
            scss: {
                // additionalData: '@import "./src/assets/css/public/variables.scss";@import "./src/assets/css/public/mixin.scss";',
                // additionalData: '@import "@/assets/css/public/variables.scss";',
            },
        },
    },
});
