woodpecker/web/vite.config.ts

28 lines
677 B
TypeScript
Raw Normal View History

/* 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')}/`,
},
},
});