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.
29 lines
704 B
29 lines
704 B
4 years ago
|
import Components from 'unplugin-vue-components/vite'
|
||
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
||
|
import WindiCSS from 'vite-plugin-windicss';
|
||
|
import { defineConfig } from 'vite'
|
||
|
import path from 'path';
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
|
||
|
const resolve = dir => path.join(__dirname, dir);
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
WindiCSS(),
|
||
|
Components({
|
||
|
resolvers: [ElementPlusResolver()],
|
||
|
}),
|
||
|
],
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'~': __dirname,
|
||
|
'@': resolve('src'),
|
||
|
'views': resolve('src/views'),
|
||
|
'components': resolve('src/components'),
|
||
|
'assets': resolve('src/assets'),
|
||
|
}
|
||
|
}
|
||
|
})
|