mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-30 15:16:42 +08:00
A clean, elegant, beautiful and powerful admin template, based on Vue3, Vite5, TypeScript, Pinia, NaiveUI and UnoCSS. 一个清新优雅、高颜值且功能强大的后台管理模板,基于最新的前端技术栈,包括 Vue3, Vite5, TypeScript, Pinia, NaiveUI 和 UnoCSS。
.github | ||
.vscode | ||
build | ||
docker | ||
mock | ||
patches | ||
public | ||
scripts | ||
src | ||
.editorconfig | ||
.env | ||
.env-config.ts | ||
.env.development | ||
.env.production | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.npmrc | ||
CHANGELOG.md | ||
farm.config.ts | ||
index.html | ||
LICENSE | ||
Makefile | ||
package.json | ||
pnpm-lock.yaml | ||
postcss.config.js | ||
README.md | ||
tsconfig.json | ||
uno.config.mjs | ||
vite.config.ts |
This project is forded from Soybean Admin. And we migrate this project from Vite to Farm reusing Vite plugins.
npm run dev:farm # start with Farm
npm run build:farm # build with Farm
npm run dev # start with Vite
npm run build # build with Vite
After migrate to Farm, this project is 2 times faster than Vite in Dev, and 6x times faster in Prod!
Performance Compare:
Cold Start(Server Ready + Page Rendered) | Cold Build | |
---|---|---|
Farm | 3.5s | 4s |
Vite | 7.5s | 24.1s |
Compare | Farm is 2x faster than Vite | Farm is 6x faster than Vite |
So this means when using Farm, you can get better performance in both dev and prod, and you can avoid a lot of issues of Vite:
- No huge amount of requests in Dev
- Consistency between dev and prod
- Flexible bundling configuration
And it is really easy to migrate your project from Vite to Farm, just move your plugins
in vite.config.ts
to vitePlugins
in farm.config.ts