React 后台管理系统项目
2022-08-03 09:57:03
125
{{single.collect_count}}

该项目架构是纯手工搭建的,并非使用脚手架搭建~

相关技术

react + redux + react-router + sass + antd + eslint + webpack

项目预览地址 https://jesonman.github.io/react-admin-demo/ (预览地址无法访问的话,把DNS改成 114.114.114.114 即可访问)

项目源码地址 https://github.com/JesonMan/react-admin/

相关页面

登录在这里插入图片描述

首页在这里插入图片描述

相关优化

  1. 使用DllPlugin和DllReferencePlugin插件,dll化常用的第三方模块,提高webpack构建速度,也有利于客户端缓存。
  2. 使用HappyPack插件开启多进程loader转换,提高webpack构建速度。
  3. 使用autoprefixer实现自动补全css浏览器兼容前缀。
  4. 使用MiniCssExtractPlugin插件抽离css到单独的css文件,并使用OptimizeCssAssetsPlugin插件对css进行压缩。
  5. 使用react-loadable实现代码分割,从而实现按需加载。
回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}