Giter Site home page Giter Site logo

yeruicsy / react-admin-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jesonman/react-admin

0.0 0.0 0.0 587 KB

react + redux + react-router + sass + antd + eslint + webpack 后台管理系统项目 https://jesonman.github.io/react-admin-demo/

CSS 5.57% HTML 16.53% JavaScript 71.27% SCSS 6.63%

react-admin-2's Introduction

react-admin

react + redux + react-router + sass + antd + eslint + webpack 后台管理系统Demo

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

使用方法

先执行以下命令,下载所有依赖的第三方模块

npm install

接着执行以下命令,dll化常用的第三方模块,只需dll一次,生成对应文件即可,后续这些第三方模块没更新的情况下,都不需要再次dll了。dll化可以提高webpack构建速度,也有利于客户端缓存。

npm run dll

执行以下命令,可进行开发

npm run dev

执行以下命令,可打包项目

npm run build

相关优化

  1. 使用DllPlugin和DllReferencePlugin插件,dll化常用的第三方模块,提高webpack构建速度,也有利于客户端缓存。
  2. 使用HappyPack插件开启多进程loader转换,提高webpack构建速度。
  3. 使用autoprefixer实现自动补全css浏览器兼容前缀。
  4. 使用MiniCssExtractPlugin插件抽离css到单独的css文件,并使用OptimizeCssAssetsPlugin插件对css进行压缩。
  5. 使用react-loadable实现代码分割,从而实现按需加载。

相关页面

登录

登录

首页

首页

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.