0.2.0 • Published 4 years ago
@reactseed/template-vite v0.2.0
@reactseed/template-vite
Vite Ant Design template for the React Seed(use vite in dev, production still use webpack).
Quick start
npx @reactseed/cli initIf you use npm 5.1 or earlier, you can't use
npx. Instead, install@reactseed/cliglobally:
npm install -g @reactseed/cli Now you can run:
reactseed initSelect Vite Ant Design Template:
? The template you want to use?
Defalut Template
❯ Vite Ant Design Template (useRedux + useRequest)Then open http://localhost:3099/ to see your app.
When you’re ready to deploy to production, create a minified bundle with npm run build.
What's inside?
Project structure
Here are the top-level files and directories you'll see in an app created using this template.
@reactseed/template-antd
├── build
├── mock
├── public
├── src
│ ├── components
│ ├── configs
│ ├── hooks
│ ├── pages
│ ├── routes
│ ├── typings
│ ├── utils
│ ├── defaultSettings.js
│ ├── react-app-env.d.ts
| ├── router.tsx
│ ├── serviceWorker.ts
│ └── setupProxy.js
├── .env
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .prettierrc
├── .stylelintrc
├── config-overrides.js
├── README.md
├── tsconfig.json
├── paths.tsconfig.json
└── package.json
└── vite.config.tsLicense
React Seed is open source software licensed as BDS.