radiator-web/vite.config.ts
garionion bb249e63fc
first commit
Signed-off-by: garionion <github@entr0py.de>
2021-04-02 23:16:56 +02:00

24 lines
556 B
TypeScript

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import styleImport from "vite-plugin-style-import";
export default defineConfig({
plugins: [
vue(),
styleImport({
libs: [
{
libraryName: "element-plus",
resolveStyle: (name) => {
name = name.slice(3);
return `element-plus/packages/theme-chalk/src/${name}.scss`;
},
resolveComponent: (name) => {
return `element-plus/lib/${name}`;
},
},
],
}),
],
});