Ei kuvausta

JXDS18FUJT 17e6aaa22a 装微信的UI库之前 2 vuotta sitten
cert 87a02afe1f 更新webpack-dev-server之前 2 vuotta sitten
public 6f320553ae 新增检验文件2 2 vuotta sitten
src 17e6aaa22a 装微信的UI库之前 2 vuotta sitten
.gitignore 280c59e389 修改了架子 2 vuotta sitten
README.md e1cee8618f 补齐部图片分资源 2 vuotta sitten
index.html 280c59e389 修改了架子 2 vuotta sitten
package-lock.json 280c59e389 修改了架子 2 vuotta sitten
package.json 280c59e389 修改了架子 2 vuotta sitten
tsconfig.json 9cb464ea57 tsconfig 添加baseUrl 2 vuotta sitten
vite.config.ts 280c59e389 修改了架子 2 vuotta sitten
yarn.lock 280c59e389 修改了架子 2 vuotta sitten

README.md

This is a vite2 & React17 & Typescript demo

TODO

  • 集成 Redux,或者使用封装过的 dva.js

  • 约定式路由

  • 还记得 babel-plugin-import 吗,在 Vite 中,如果想样式按需加载,可以尝试使用这个插件:vite-plugin-style-import,现在已经支持 Vite 2

  • less 换成 scss

  • Production ModeSSR,参照官网配置即可,遇到什么坑可以一起讨论