create-react-app-ts-template

Stars
1

TS h5

  • amfe-flexible
  • .env
  • thread-loader hard-source-webpack-plugin __
  • less css modules
  • UZI
  • GA
  • Sentry

env

  • BROWSER=NONE
  • H5=TRUE h5 px2rem amfe-flexible
  • REACT_APP_VERSION=1.0.1
  • REACT_APP_TITLE=TS Demo html title
  • REACT_APP_DESC= 1, 2 html description
  • REACT_APP_USE_WECHAT_SHARE
  • USE_GA GA
  • USE_UZI UZI
  • UZI_APPID UZI appid
  • REACT_APP_USE_SENTRY sentry
  • REACT_APP_SENRTY_SRC sentry
  • REACT_APP_SENRTY_CONFIG_LINK sentry

REACT_APP


  1. rm -rf .git/ && git init
  2. package.json name
  3. .env
  4. REACT_APP_VERSION app
  5. REACT_APP_TITLE
  6. REACT_APP_DESC html meta=description
  7. REACT_APP_USE_WECHAT_SHARE TRUE
  8. USE_GA TRUE GA https://wiki.n.miui.com/pages/viewpage.action?pageId=218084350
  9. USE_UZI TRUE UZI UZI_APPID
  10. UZI_APPID uzi appid http://uzi.ai.srv/index.html#/appid
  11. USE_SENTRY TRUE sentry REACT_APP_SENRTY_SRC REACT_APP_SENRTY_CONFIG_LINK
  12. REACT_APP_SENRTY_SRC sentry https://cdn.ravenjs.com/3.26.2/raven.min.js
  13. REACT_APP_SENRTY_CONFIG_LINK https://sentry.micloud.d.xiaomi.net/organizations/sentry/projects/new/

  1. .env.production PUBLIC_URL=xx
  2. package.json script.goku