0.0.2 • Published 2 years ago
cra-template-react-query-boat v0.0.2
cra-template-react-query-boat
基于vite构建的react + react-query + typescript 脚手架
create react app
To use this template with Create React App, add --template react-query-boat when creating a new app. For example:
npx create-react-app my-app --template react-query-boat
yarn create react-app my-app --template react-query-boat
命令说明
yarn install
安装依赖
yarn run start:mock
本地运行mock环境
yarn run start:test
本地运行测试环境
yarn run start:production
本地运行生产环境
yarn run build:test
本地打包测试环境
yarn run build:production
本地生产生产环境
yarn run serve
本地开启服务,运行dist目录代码
yarn run lint
eslint检测代码
用vite支持esm构建,效率更高
Vite 是基于 esbuild 预构建依赖的