Giter Site home page Giter Site logo

react-init-app's Introduction

react-init-app

react webpack4初始化脚手架react-router,mobx,axios等组件

  • 脚手架主要实现的功能:
  1. 实现webpack实现项目构建的基本功能,输入输出;
  2. 加入html-webpack-plugin 自动实现模版的js 引入;
  3. babel-loader 实现es6 语法转 es5 语法;
  4. style-loader 和 css-loader 解析在js 引入的css 文件,并插入到html的head 中
  5. 利用 webpack-dev-server 实现热加载和开启服务功能;
  6. devtool='inline-source-map' 实现开发状态下的调试;
  7. yargs-parser 模块解析命令行参数;
  8. 利用 cross-env(运行跨平台设置和使用环境变量的脚本),保证windows 和 linux 的 环境变量设置统一;
  9. 增加对于sass,less 的解析功能;
  10. 增加对于图片,文件的加载解析;
  11. 增加eslint 实现语法检查;
  12. 代码分离,分离第三方模块代码;
  13. js和css 分离开来; mini-css-extract-plugin
  14. 加入依赖可视化查看工具 webpack-bundle-analyzer;
  15. 引入react 全家桶 @babel/preset-react
  16. mobx 和 mobx-react 使用了修饰符

babel-plugin-transform-decorators-legacy babel-plugin-transform-class-properties

  1. css 优化 optimize-css-assets-webpack-plugin
  2. js 优化 uglifyjs-webpack-plugin

react-init-app's People

Contributors

chrissong1994 avatar

Stargazers

 avatar  avatar

Watchers

 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.