mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-01-24 10:33:47 +08:00
17 lines
361 B
TypeScript
17 lines
361 B
TypeScript
import styleImport from 'vite-plugin-style-import';
|
|
|
|
export function configStyleImportPlugin() {
|
|
const pwaPlugin = styleImport({
|
|
libs: [
|
|
{
|
|
libraryName: 'ant-design-vue',
|
|
esModule: true,
|
|
resolveStyle: (name) => {
|
|
return `ant-design-vue/es/${name}/style/index`;
|
|
},
|
|
},
|
|
],
|
|
});
|
|
return pwaPlugin;
|
|
}
|