27 lines
635 B
TypeScript
27 lines
635 B
TypeScript
import { fileURLToPath, URL } from 'node:url';
|
|
|
|
import { defineConfig } from 'vite';
|
|
import Components from 'unplugin-vue-components/vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: process.env.BASE || '/',
|
|
plugins: [
|
|
vue(),
|
|
Components({
|
|
resolvers: [
|
|
(componentName) => {
|
|
if (componentName.startsWith('Va') || componentName.startsWith('va'))
|
|
return { name: componentName, from: 'vuestic-ui' };
|
|
}
|
|
]
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
}
|
|
});
|