Git Product home page Git Product logo

av's Introduction

av

思路

1 基础配置,用webpack4实现大部分基础打包功能;后续考虑尝试使用parcel。 2 加入react 3 加入ssr ReactDOM.renderToString <div id="app" dangerouslySetInnerHTML={{ __html: children }} />

4 先将server和client分开执行,后续使用js脚本将二者串联起来,可参考react-starter-kit项目

需求准备

开发模式下:

1 热加载 2 能与后台交互时的解决跨域问题

生产模式下:

1.能把 react 模块分开
2.能自动将生成 js 文件绑定到 html 页面
3.压缩 js、css 代码
4.想要使用 ant design 开发,但是 antd 样式文件较大,能够按需加载

通用的:

使用 es6、jsx 语法
能生成 map 文件
能加载各种文件:json,图片,字体,css,scss,less
找路径不要那么麻烦的使用 '../../' 之类的,能直接从项目跟路径找。
命令能够兼容 linux 或者 windows
使用 eslint 进行代码检查
使用 esformatter 进行代码格式化
能自动处理 css 样式兼容性问题

todo

  1. tree shaking

av's People

Contributors

daziiiiiii avatar

Watchers

 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.