Skip to content

Jecen/react-ssr-starter

Repository files navigation

tpl-react

�Introduction

Structure

+-- build [项目配置文件]
|
+-- public [公有资源]
|
+-- dist [打包完成后文件夹]
|
+-- src [源代码]
|    |
|    +-- components [组件]
|    |
|    +-- routes [路由]
|    |
|    +-- client.js [客户端入口]
|    |
|    +-- server.js [服务端入口]
|    |
|    +-- history.js [客户端导航实例]
|    |
|    +-- router.js [系统路由实例]
|    |
|    +-- html-tool.js [针对html的操作方法]
|    |
|    +-- http.js [fetch 实例]
|
+-- ... [项目相关配置]

Script

依赖

yarn

本地开发模式

yarn dev

客户端打包

yarn build-client

服务端打包

yarn build-server

TODO

  • Http Client
  • Api Proxy
  • State Manager
  • Analyse Mode

About

react + mobx + webpack4 + happypack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published