Skip to content

React16.3.2+Mobx4+express+Babel7服务端渲染脚手架,支持代码按需加载,使用webpack4.12.0打包文件

License

Notifications You must be signed in to change notification settings

Tecode/react-mobx-ssr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e3c6d26 · Apr 22, 2019

History

43 Commits
Sep 26, 2018
Sep 26, 2018
Sep 26, 2018
Sep 18, 2018
Jun 6, 2018
Dec 23, 2018
Jun 6, 2018
Jun 6, 2018
Jun 6, 2018
Jun 6, 2018
Apr 22, 2019
Sep 18, 2018
Sep 20, 2018
Jun 11, 2018
Sep 20, 2018
Dec 23, 2018

Repository files navigation

React+Mobx server side render boilerplate with ES2015, Express.js, and Webpack.

更新

Technologies

  • React (v16) + Mobx (v4) + React Router (v4)
  • Express.js (v4) as production and development server
  • Webpack 4.12.0 (production and development configurations)
  • SCSS support (+ sanitize.css included)
  • ES2015
  • Antd v3.6.2

Features

  • Server side render(ssr)
  • Code splitting
  • Preconfigured router
  • React Antd UI example theme
  • preconfigured eslint and Prettier code formatter
  • React Hot Loader
  • Linux/MacOS/Windows

Usage

Installation

git clone https://github.com/Tecode/react-mobx-ssr.git
cd react-mobx-ssr
npm install Or yarn

# remove boilerplate git references
rm ./.git

Scripts

# run development mode
npm run dev

# run production mode
npm run build
npm start

# run prettier
npm run prettier

# run lint
npm run lint

# run on a different port
HTTP_PORT=3001 npm run dev

License

MIT License. Free use and change.

About

React16.3.2+Mobx4+express+Babel7服务端渲染脚手架,支持代码按需加载,使用webpack4.12.0打包文件

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published