vite.config.(ts or js)

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

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue({
      template: {
        compilerOptions: {
          isCustomElement: (tag) => tag.startsWith("lord-icon"),
        },
      },
    }),
  ],
});
最后修改:2022 年 05 月 04 日 06 : 00 PM
如果觉得我的文章对你有用,请随意赞赏