Vite [2] Use vite to create a project

Vite [2] Use vite to create a project


foreword

vite (French for "quick", pronounced /vit/, pronounced like "veet") is a new front-end building tool that can significantly improve the front-end development experience. Vite is faster to start and hot update than the webpack packaging tool. Vite uses esbuild (written in Go) to pre-build dependencies, while webpack is based on node.js, so vite is 10 to 100 times faster than webpack.


viteCreate a project

  1. Run the create project command
# 使用npm
npm create vite@latest
# 使用yarn
yarn create vite
# 使用pnpm
pnpm create vite

Enter:
insert image description here

2. Enter the project name, the default is vite-project
insert image description here
3. Select the front-end framework
insert image description here
4. Select the language type
insert image description here
5. The creation is complete
insert image description here
6. Enter the project directory, install dependencies ( pnpm i), start the project
insert image description here
7. Run the result
insert image description here

Guess you like

Origin blog.csdn.net/qq_51602285/article/details/128874510