feat:移除了弹窗,服务器添加sls

This commit is contained in:
2026-09-08 22:39:45 +08:00
commit 6a295f9a7a
4082 changed files with 1322534 additions and 0 deletions

View File

@ -0,0 +1,48 @@
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'],
},
},
})