mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 20:30:31 +00:00
28 lines
677 B
TypeScript
28 lines
677 B
TypeScript
|
/* eslint-disable import/no-extraneous-dependencies */
|
||
|
import vue from '@vitejs/plugin-vue';
|
||
|
import path from 'path';
|
||
|
import IconsResolver from 'unplugin-icons/resolver';
|
||
|
import Icons from 'unplugin-icons/vite';
|
||
|
import Components from 'unplugin-vue-components/vite';
|
||
|
import { defineConfig } from 'vite';
|
||
|
import WindiCSS from 'vite-plugin-windicss';
|
||
|
import svgLoader from 'vite-svg-loader';
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
WindiCSS(),
|
||
|
Icons(),
|
||
|
svgLoader(),
|
||
|
Components({
|
||
|
resolvers: IconsResolver(),
|
||
|
}),
|
||
|
],
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'~/': `${path.resolve(__dirname, 'src')}/`,
|
||
|
},
|
||
|
},
|
||
|
});
|