GithubHelp home page GithubHelp logo

cuitymiko / react16-webpack3.8-onepage-base-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wangweianger/react16-webpack3.8-onepage-base-project

0.0 1.0 0.0 2.09 MB

react16.0 + webpack3.8 最新单页面集成模板

JavaScript 85.62% CSS 13.93% HTML 0.45%

react16-webpack3.8-onepage-base-project's Introduction

react 集成开发框架

  • 使用知识点:  * react         
  • webpack 前端自动话打包工具
  • react-router-dom
  • react-redux
  • redux
  • babel

项目webpack 优化说明文档

react-router的4种异步加载方式

基于react-router-config的路由拆分

项目步骤

1.安装node.js

2.安装项目依赖包

npm install
或
yarn install

3.运行开发环境

npm run dev 

4.打包生产文件

npm run build:dll   //此命令一般只运行一次 请参考上面weboack构建优化文章说明

npm run build

增加flow

使用flow检查的文件在顶部增加  
// @flow   或者  /* @flow */  标识

检查全部文件
npm run flow

如果Sublime要开启eslint的flow检测 需要做如下另个步骤

新增eslint代码检查

DEMO图片

react16-webpack3.8-onepage-base-project's People

Contributors

wangweianger avatar

Watchers

James Cloos 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.