关于前端:前端构建工具-vite-相关命令

6次阅读

共计 235 个字符,预计需要花费 1 分钟才能阅读完成。

vite(举荐应用 vite: 疾速冷启动(秒开), 即时的模块热更新, 按需编译)

全局装置 vite

npm i -g create-vite-app

应用 vite1.0 搭建我的项目

create-vite-app 我的项目名 

应用 vite 最新版本

npm init vite@latest 我的项目名 

指定应用模板

npm init vite@latest 我的项目名 --template vue

装置依赖

npm i

运行我的项目

npm run dev

卸载 vite

npm uninstall -g create-vite-app
正文完
 0