Skip to content

Latest commit

 

History

History
137 lines (75 loc) · 4.26 KB

File metadata and controls

137 lines (75 loc) · 4.26 KB

micro-frontend-template

中文 | English

这是一个基础的 vue3 admin 管理后台。它只包含了 Element-Plus UI & axios & svg-icon& permission control & lint,这些搭建后台必要的东西。

本架构使用的技术为:vue3(setup-script)+vite2+element-plus 的新一代的前端框架,It's fast!

使用 eslint+prettier+gitHooks 格式和校验代码,提高代码规范性和开发效率

Vite 需要 Node.js 版本 >= 12.0.0。

更新日志

---请查看架构文档

文档

线上体验

github address

Access address

github 地址: https://github.com/jzfai/micro-frontend-template.git

国内体验地址:http://8.135.1.141/micro-frontend-template

例子

---- 我们先看看加载速度和构建后的包大小:

template-speed-analysis

template-demo

相关项目

框架有js,ts,plus和electron版本

开发和使用感受:两个字 真香!!!!!

vue3和vue2在性能上的对比

  • 打包大小减少41%

  • 初次渲染快55%, 更新渲染快133%

  • 内存减少54%

  • 使用Proxy代替defineProperty实现数据响应式

  • 重写虚拟DOM的实现和Tree-Shaking

vite2和webpack打包速度上的对比

Build Setup

# clone the project
git clone https://github.com/jzfai/micro-frontend-template.git

# enter the project directory
cd micro-frontend-template

# pnpm address https://pnpm.io/zh/motivation
# install dependency(Recommend use pnpm)
# you can  use "npm -g i pnpm" to install pnpm 
pnpm i

# develop
pnpm run hostall:dev

using the browser to open http://localhost:5012/vue3-micro-frontend

Build

# build for production environment
pnpm run  hostall:preview

Others

# preview the release environment effect
pnpm run hostall:preview-offline

# code format check
pnpm run lint

额外

架构开发不易,如果感觉好,请给我点个 start ,架构还在不断完善中,欢迎加入我开发,一起成为Contributors !!!!

浏览器支持

注意:vue3不在支持IE浏览器 Modern browsers and Internet Explorer 11+.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Edge last 2 versions last 2 versions last 2 versions

讨论和交流(含vue3+ts视频教程)

WeChat group

版本

MIT license.

Copyright (c) 2021-present kuanghua