Giter Site home page Giter Site logo

react-redux-webpack's Introduction

这是个主要使用 webpack + react + redux + es6 + cssModule 的 demo,包含 React 技术栈全家桶,可作为开发模板使用。

##主要功能特征

  • 使用热加载,文件改变页面自动刷新
  • 文件 Code Spliiting 按需加载
  • 使用 DllPlugin 将依赖文件独立打包
  • 使用 ESlint 检测 js
  • less->css,autoprefixer
  • 小于 8k 图片转化为 base64,图片压缩
  • 文件压缩、添加 MD5
  • 使用 Fetch,抛弃 Ajax

####页面效果如下:

demo


Requirements

Usage

####安装

git clone https://github.com/rover5056/React-Redux-webpack.git
cd boilerplate-webpack-react-es6-cssModule
npm install

####开始开发

//将 react、react-dom 单独打包
npm run dll
//启动服务器开始开发
npm start

####生产打包

npm run buil-win

####启动接口 本项目的接口数据通过 json-server 配置,需全局安装并启动:

npm i -g json-server
npm run mock

接口将会在本地 3003 端口启动

Linting

本项目使用 ESlint,项目开发过程中会自动检测 js

也可手动检测:

npm run lint src

检测完毕会在命令行显示所有纠错提示

Dependencies

react-redux-webpack's People

Contributors

rover5056 avatar

Stargazers

 avatar daniellidg avatar WangHeyang avatar  avatar 美兰十三 avatar  avatar 左思念 avatar haHaha Jing avatar Grouvers avatar Freedom avatar Pine Mizune avatar Masaaki Morishita avatar 月野兔酱 avatar  avatar 花花丹 avatar HDRorz avatar  avatar  avatar  avatar  avatar

Watchers

James Cloos avatar 美兰十三 avatar daniellidg avatar  avatar  avatar haHaha Jing avatar  avatar  avatar

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.