feat(aklive2d): add an index page

This commit is contained in:
Haoyu Xu
2023-01-02 03:11:25 -05:00
parent 518f8c8064
commit 0fb857c879
19 changed files with 810 additions and 12939 deletions

View File

@@ -0,0 +1,25 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import path from 'path'
import config from './config'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
build: {
outDir: path.resolve(config.basedir, config.server.release_folder),
assetsDir: '_index/assets',
emptyOutDir: false,
rollupOptions: {
output: {
manualChunks: {
},
}
}
},
})