18355fc7创建于 2024年6月19日历史提交
import { fileURLToPath, URL } from "node:url";

import { defineConfig } from "vite";

import vue from "@vitejs/plugin-vue";

import legacy from "@vitejs/plugin-legacy";



export default defineConfig({

  base: "./",

  plugins: [

    vue(),

    legacy({

      targets: ["defaults", "not IE 11"],

    }),

  ],

  build: {

    assetsInlineLimit: 204800,

  },

  server: {

    host: "0.0.0.0",

  },

  resolve: {

    alias: {

      "@": fileURLToPath(new URL("./src", import.meta.url)),

    },

  },

});