Files
AstralRinth/packages/ui/vite.config.ts
T
Prospector 34b87991bc feat: new user badges, ui consistency pass (#6262)
* feat: new user badges, ui consistency pass

* prepr

* fix: align with backend

* fix: lint

---------

Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
2026-05-31 15:25:31 +00:00

49 lines
776 B
TypeScript

import path from 'node:path'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import svgLoader from 'vite-svg-loader'
export default defineConfig({
plugins: [
vue(),
svgLoader({
svgoConfig: {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
removeViewBox: false,
cleanupIds: {
minify: false,
},
},
},
},
],
},
}),
],
cacheDir: '.vite',
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
'#ui': path.resolve(__dirname, 'src'),
},
},
build: {
lib: {
entry: path.resolve(__dirname, 'index.ts'),
name: 'ModrinthUI',
formats: ['es'],
fileName: 'index',
},
rollupOptions: {
external: ['vue'],
},
},
})