You've already forked AstralRinth
34b87991bc
* feat: new user badges, ui consistency pass * prepr * fix: align with backend * fix: lint --------- Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
49 lines
776 B
TypeScript
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'],
|
|
},
|
|
},
|
|
})
|