feat: stash-ui 0.1.0(40 个组件 + 文档站 + 主题机制)

This commit is contained in:
stash
2026-10-28 20:44:18 +08:00
commit 52296b3368
153 changed files with 17129 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
/**
* 展示站(文档站 + 拼装示例)的开发与构建配置。
*
* `site/` 是独立的应用入口,直接 import `src/` 里的组件源码,
* 所以改组件不需要先构建库,dev 下即时生效。
*
* 两个页面入口:
* - `index.html`:组件文档(左侧目录 + 每组件一节)
* - `demo.html`:用组件拼出来的完整页面(可切换深浅色)
*/
export default defineConfig({
plugins: [react()],
root: 'site',
server: {
port: 5199,
host: '127.0.0.1',
},
build: {
outDir: '../dist-site',
emptyOutDir: true,
rollupOptions: {
input: {
main: 'site/index.html',
demo: 'site/demo.html',
},
},
},
})