README
@aiou/preact-template
spa preact template(maybe use in mobile)
Features
- use webpack
- support ts
<link />
会加上preload
- 在移动端可以通过
http:<ip>:port
方式访问
Dependencies
- typescripts
- css
- stylus
- post-css
- react
- typescript
- webpack v4
For Devlopers
- custom
prepublishOnly script
in package.json and other package info
推荐使用VSCODE IDE
- IDE - VSCode
- install
plugin
- stylint - install
plugin
- tslint
- install
- install redux-dev-tools in Chrome Store
- IDE - VSCode
可以使用Rucksack和Rupture 加速
stylus
开发。分别封装了一些好用postcss mixins
和stylus mixins for media query
路由使用了
react-router docs
里面的router config
的方式,是否合理见仁见智使用
rematch
作为redux framework
。- 如要使用
redux-observable
,我也封装了一个rematch-observable
。 - 如有
data request
。推荐使用swr
进行api
的缓存
- 如要使用