1
0
mirror of synced 2026-03-23 02:58:34 +08:00

chore: 删除ui/ui-react

This commit is contained in:
roymondchen
2025-08-27 15:43:28 +08:00
parent 9f63dff49b
commit 0643699fac
21 changed files with 259 additions and 392 deletions

View File

@@ -0,0 +1,36 @@
import path from 'node:path';
import { defineConfig } from 'vite';
import fse from 'fs-extra';
import baseConfig from '../vite.config';
export default defineConfig({
...baseConfig,
plugins: [
...(baseConfig.plugins || []),
{
name: 'vite-plugin-copy-runtime',
apply: 'build',
enforce: 'post',
closeBundle() {
const clientFile = path.resolve(__dirname, '../dist/page')
fse.copySync(clientFile, path.resolve(__dirname, '../../../playground/public/runtime/react/page'))
},
}
],
root: './page',
publicDir: '../public',
base: `${baseConfig.base}/page`,
build: {
emptyOutDir: false,
sourcemap: true,
outDir: '../dist/page',
},
});