MeterSphere/frontend/config/plugin/arcoStyleImport.ts

17 lines
504 B
TypeScript
Raw Normal View History

2023-05-24 11:08:08 +08:00
/**
* Theme import
*
* https://github.com/arco-design/arco-plugins/blob/main/packages/plugin-vite-vue/README.md
* https://arco.design/vue/docs/start
*/
import { vitePluginForArco } from '@arco-plugins/vite-vue';
export default function configArcoStyleImportPlugin() {
// 按需加载主题样式
const arcoResolverPlugin = vitePluginForArco({
theme: '@arco-themes/vue-ms-theme',
});
// const arcoResolverPlugin = vitePluginForArco({});
return arcoResolverPlugin;
}