9de0a56afa
- 在 .env.example 中添加 SERVER_BASE_IMAGE、SERVER_INTERNAL_PORT 等配置项 - 添加前端构建相关的 NODE_IMAGE 和 NGINX_IMAGE 配置 - 添加客户端 H5 和原生应用的 API 基础路径配置 - 支持动态端口配置以提高部署灵活性 feat(docker): 更新 Dockerfile 使用参数化镜像和端口配置 - 修改 server/Dockerfile 支持动态基础镜像和内部端口 - 更新 admin-web/Dockerfile 使用参数化镜像配置 - 修改 clients/Dockerfile 支持客户端多环境配置参数 - 所有 Dockerfile 现在使用 ARG 参数进行灵活配置 feat(nginx): 优化 Nginx 配置支持动态端口代理 - 更新 Nginx 配置文件使用环境变量定义监听端口 - 配置三个独立的服务端口分别处理客户端、管理后台和服务器API - 添加完整的代理头信息设置以支持正确的请求转发 - 使用 Nginx 环境变量实现灵活的服务间通信 feat(deploy): 完善 docker-compose.yml 的环境变量集成 - 更新 docker-compose.yml 文件以使用新的环境变量配置 - 配置服务健康检查使用动态端口 - 设置 Nginx 容器环境变量以支持模板化配置 - 修复服务间通信端口使用环境变量替代硬编码值
element-plus-vite-starter
A starter kit for Element Plus with Vite
This is an example of on-demand element-plus with unplugin-vue-components.
If you want to import all, it may be so simple that no examples are needed. Just follow quickstart | Docs and import them.
If you just want an on-demand import example manually, you can check unplugin-element-plus/examples/vite.
If you want to a nuxt starter, see element-plus-nuxt-starter.
Project setup
pnpm install
# npm install
# yarn install
Compiles and hot-reloads for development
npm run dev
Compiles and minifies for production
npm run build
Usage
git clone https://github.com/element-plus/element-plus-vite-starter
cd element-plus-vite-starter
npm i
npm run dev
Custom theme
See src/styles/element/index.scss.