HuangHongRui / huanghongrui.github.io

:poultry_leg: MyBlog | Keep track of every moment.. :icecream:
http://blog.luckyman.xyz/
3 stars 1 forks source link

Ruirui_Blog #34

Open HuangHongRui opened 6 years ago

HuangHongRui commented 6 years ago

This's Important For Me..

简单记录过程..

  1. create-react-app my-app --scripts-version=react-scripts-ts 创建一个React项目 image

  2. 弹出Webpack/ Tslint 配置: npm run eject

  3. 因为使用 Sass 所以需要在 config/webpack.config.dev.js 文件里添加些配置.. image

  4. 添上路由. React-Router

  5. npm i --save lodash && npm install rxjs && npm install antd --save

HuangHongRui commented 6 years ago

image