Giter Club home page Giter Club logo

react-boilerplate's Introduction

react-boilerplate

一个小项目的react脚手架

使用方式:

    // 打包
    npm run build
    // 开发
    npm run server

这个项目用到:

webpack 需要完成的任务

  1. es2015 js代码的编译
  2. css 模块化处理
  3. jsx 代码的编译
  4. js,css 代码的打包
  5. 对图片进行压缩处理
  6. 对代码进行eslint检查

postcss 需要完成的任务

  1. 处理样式的兼容性(autoprefixer)
  2. 能够按照使用以后的css规范编写css(postcss-cssnext)
  3. 压缩css代码(cssnano)

ESLint

使用 eslint-config-airbnb配置eslint

暂未解决的Bug

  1. css-loader 在使用了CssModule之后,引用在当前目录下面图片 background-image:url(./xxx.xx) 会报找不到模块 xxx.xx 错误,而使用 background-image:url(../**/xxx.xx) 能够成功找到对应文件
  2. 使用 hotModuleReplace 感觉并没有想要的效果,没有反应。

react-boilerplate's People

Contributors

wan9dj avatar

Watchers

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