You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
736 B
24 lines
736 B
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import * as _ from "lodash"
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue(), Components({
|
|
dts: true,
|
|
resolvers: [
|
|
{
|
|
type: "component",
|
|
resolve: (componentName: string) => {
|
|
if (componentName.startsWith("Ps")) {
|
|
return {
|
|
name: componentName,
|
|
from: `@princess-ui/components/${_.lowerFirst(componentName.slice(2))}`
|
|
}
|
|
}
|
|
},
|
|
}
|
|
],
|
|
})]
|
|
})
|
|
|