# pcuc-react-app **Repository Path**: pcuc/pcuc-react-app ## Basic Information - **Project Name**: pcuc-react-app - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-07 - **Last Updated**: 2024-08-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react web端项目 -[查看推荐的前端开发环境搭建](前端开发环境配置.md) -[查看推荐的前端开发规范](前端开发规范.md) -[移动端适配](移动端适配.md) ## 关于本项目 -dependencies只有react + react-dom + react-router-dom + axios + tailwindcss -devDependencies主要为 weppack + typescript + less + scss -支持 svg图标 -支持 css module 文件名以.module.css、.module.scss 、.module.less 结尾会开启 -使用eslint规范代码 -使用stylelint规范样式 -使用perttier代码格式化 -使用husky + lint-staged + commitlint 规范git提交 ## 如何使用 ```#!/bin/bash $git clone https://gitee.com/liweisum/pcuc/pcuc-react-app.git $cd pcuc-react-app $pnpm i $pnpm start # 本地启动 $pnpm run build # 打包 $npm install -g serve # 安装serve $serve -s dist # 启动serve预览打包后的dist ``` ## tip webapck热更新不生效? 使用hot:true 不生效 需要将 target:['browserslist'] 改为 target:'web' 或者设置client:{webSocketURL:{...}}