当前位置:网站首页>“vite”和“vite预览”有什么区别?
“vite”和“vite预览”有什么区别?
2022-08-03 17:25:00 【1024小神】
使用npm init vite创建项目时候,生成的项目中存在如下命令:

它们的区别是:
dev 使用HMR启动本地web服务器进行开发
build 生成项目,并输出到文件夹。/dist
preview 启动一个本地web服务器,该服务器从/dist为构建的解决方案提供预览服务
创建完项目之后,需要使用npm i 安装依赖才可以启动项目:

边栏推荐
- The strongest distributed lock tool: Redisson
- How to write SQL statements in DataWorks monitoring data reaches a certain value to indicate the change of
- 使用deepstream消息发送功能的时候,检测框没有检测标签,No text labels of bboxes displayed with osd for deepstream-test5
- 【保姆级示例向】观察者模式
- sphinx error connection to 127.0.0.1:9312 failed (errno=0, msg=)
- 面试突击:什么是粘包和半包?怎么解决?
- CC2530_ZigBee+华为云IOT:设计一套属于自己的冷链采集系统
- Component communication - parent-child component communication
- 一键进入华为云会议,长期免费值得所有开发团队有一套【华为云至简致远】
- 【数仓】数据质量监控
猜你喜欢

deepstresam的插件配置说明,通过配置osd,设置字体的背景为透明

JVS低代码移动端接入方案
![[Unity Getting Started Plan] Basic Concepts (6) - Sprite Renderer Sprite Renderer](/img/c2/5717cb053bc6c07829a616735cbc71.png)
[Unity Getting Started Plan] Basic Concepts (6) - Sprite Renderer Sprite Renderer

软件测试<用例篇>

论文解读(JKnet)《Representation Learning on Graphs with Jumping Knowledge Networks》

【时间的比较】

node connection mongoose database process

fastposter v2.9.0 程序员必备海报生成器

J9数字虚拟论:元宇宙的潜力:一股推动社会进步的力量

After using Stream for many years, does collect still have these "saucy operations"?
随机推荐
阿里二面:没有 accept,能建立 TCP 连接吗?
为什么我用了Redis之后,系统的性能却没有提升
J9数字虚拟论:元宇宙的潜力:一股推动社会进步的力量
【技术白皮书】第一章:OCR智能文字识别新发展——深度学习的文本信息抽取
TiKV & TiFlash 加速复杂业务查询丨TiFlash 应用实践
微信小程序 - 数组 push / unshift 追加后数组返回内容为数字(数组添加后打印结果为 Number 数值类型)
Interpretation of the paper (JKnet) "Representation Learning on Graphs with Jumping Knowledge Networks"
掌握Redis的Sentinel哨兵原理,可助你拿到25k的offer
关于oracle表空间在线碎片整理
使用deepstream消息发送功能的时候,检测框没有检测标签,No text labels of bboxes displayed with osd for deepstream-test5
产品-Axure9英文版,轮播图效果
【机器学习】机器学习的基本概念/术语2
401. Binary Watch
JVM参数设置
一些嵌入式软件设计经验
被误解的 MVC 和被神化的 MVVM(二)
面试突击71:GET 和 POST 有什么区别?
出海,是泡泡玛特的“解药”吗?
华为ECS云服务器上安装Docker及部署Redis详细教程【华为云至简致远】
Looking at the ecological potential of Hongmeng OS from the evolution of MatePad Pro