|
2 anos atrás | |
---|---|---|
.husky | 2 anos atrás | |
cypress | 2 anos atrás | |
packages | 2 anos atrás | |
.eslintignore | 2 anos atrás | |
.eslintrc.cjs | 2 anos atrás | |
.gitignore | 2 anos atrás | |
.stylelintignore | 2 anos atrás | |
.stylelintrc.json | 2 anos atrás | |
LICENSE | 2 anos atrás | |
README.md | 2 anos atrás | |
commitlint.config.cjs | 2 anos atrás | |
cypress.config.ts | 2 anos atrás | |
package.json | 2 anos atrás | |
pnpm-lock.yaml | 2 anos atrás | |
pnpm-workspace.yaml | 2 anos atrás | |
tsconfig.json | 2 anos atrás | |
tsconfig.paths.json | 2 anos atrás |
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.
Do not modify files under webpack
unless you are sure of the modified results
The project use SWC by default. If you want to use babel, please download
babel-loader @babel/core @babel/plugin-transform-runtime @babel/preset-env @babel/preset-react @babel/preset-typescript babel-plugin-react-remove-properties thread-loader
and set SWT_ENABLE_SWC=false
in .env
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
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
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.
.env.dev
..env.pro
..env.test
.The project directory and basic template information have been created in this package.