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
功能
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
使用方法
安装
git clone https://github.com/Tecode/react-mobx-ssr.git
cd react-mobx-ssr
npm install Or yarn# remove boilerplate git references
rm ./.git
复制代码
命令行
# 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
复制代码