# node-frontend-vue3 示例 Vue 3 + Element Plus 的前端项目,**构建阶段**用 `compile-node22` 跑 Vite,**运行阶段**以自建 `proxy-tengine3` 镜像为基座托管静态文件。与 [`node-frontend-vue2`](../node-frontend-vue2/README.md) 对照, 差别只在框架版本与 UI 库。 | 阶段 | 镜像 | 说明 | | --- | --- | --- | | 编译 | `registry.cn-shanghai.aliyuncs.com/odboy/kenaito:compile-node22` | Node 22 + npm(源为 npmmirror),Vite 7 要求 Node ≥ 20.19 | | 运行 | `registry.cn-shanghai.aliyuncs.com/odboy/kenaito:proxy-tengine3` | Tengine 3.1.0,托管 `dist/` | 纯前端项目:页面数据全部在浏览器内产生,不调用任何后端接口,部署只需要一个 Tengine 容器。 ### 示例内容 ``` node-frontend-vue3/ ├── package.json # vue 3.5.45 / element-plus 2.14.8 / vue-router 4.6.5;vite 7 + plugin-vue 6 ├── vite.config.js # base: './';element-plus 单独拆包 ├── index.html ├── src/ │ ├── main.js # createApp().use(router).use(ElementPlus) │ ├── router.js # createWebHashHistory,/ /form /about │ ├── App.vue #