ld后台管理模板

xyh 2c99aae4df refactor: 教研库修改为yup 2 năm trước cách đây
.husky 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
.vscode 1a298de719 feat: hooks完成 2 năm trước cách đây
cypress 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
packages 2c99aae4df refactor: 教研库修改为yup 2 năm trước cách đây
.editorconfig 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
.eslintignore 8a29586f29 refactor: 移除icon-park完全使用antd-icon 2 năm trước cách đây
.eslintrc.cjs 45ac6701bc feat: 角色管理完成 2 năm trước cách đây
.gitignore 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
.stylelintignore 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
.stylelintrc.json 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
.versionrc 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
LICENSE 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
README.md 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
commitlint.config.cjs 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
cypress.config.ts 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
package.json d84a0d2818 test: 修正测试相关问题 2 năm trước cách đây
pnpm-lock.yaml 2c99aae4df refactor: 教研库修改为yup 2 năm trước cách đây
pnpm-workspace.yaml 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
tsconfig.json 1a298de719 feat: hooks完成 2 năm trước cách đây
tsconfig.paths.json 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây
vitest.config.ts 1a298de719 feat: hooks完成 2 năm trước cách đây
vitest.workspace.ts 4ef7d9093a feat: 初始化仓库 2 năm trước cách đây

README.md

React-Webpack-Template

An out of the box react webpack template,It is simpler, more convenient to customize and more modular on the basis of create-react-app.


Warning

Do not modify files under webpack unless you are sure of the modified results


Babel

The project use SWC by default. If you want to use babel, please run pnpm add babel-loader @babel/core @babel/plugin-transform-runtime @babel/preset-env @babel/preset-react @babel/preset-typescript babel-plugin-react-remove-properties thread-loader -D -F webpack and set SWT_ENABLE_SWC=false in .env


Usage

  • Clone this repo, like pnpm dlx degit xyhxx/react-webpack-template#monorepo. In addition, you can click "Use this template" to copy this template to your repositories

  • Install all dependencies pnpm install

  • Build under development mode pnpm dev

  • Build under production mode pnpm build

  • Unit test or integration test pnpm test

  • Other scripts can be viewed in package.json


Config

Please do not modify the content in the webpack package. If you want to modify some content, such as sourcemap orthread-loader, you can adjust it in packages/app/.env


ENV

If you want to add content in process.env, you can add it in packages/app/.env. Don't forget to add type to packages/app/src/global.d.ts

We also support adding in the specified environment.

  • development use .env.dev.
  • production use .env.pro.
  • test use .env.test.


Preset

The project directory and basic template information have been created in this package.