Skip to content

A blog build with React+Redux+Typescript

License

Notifications You must be signed in to change notification settings

timogal/react-ts-blog

Repository files navigation

A blog frontend build with React and Typescript

In progress...

目录结构参照: https://github.com/react-boilerplate/react-boilerplate

typescript配置参照:https://github.com/Microsoft/TypeScript-React-Starter

启动

启动开发环境: yarn dev

正式环境

npm start

使用pm2

npm run build
pm2 start process.json

功能

  • Redux状态管理
  • 主体页面
  • SSR - 服务端渲染
  • 响应式
  • Production Build

Tips

node-sass安装失败

yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ [--global/-g]

或参考:lmk123/blog#28

html2json的修改

修改node_modules/html2json/src/html2json.js的115行为:

var parent = bufArray[0] || results;

参考:Jxck/html2json#30