当前位置:网站首页>Vite3.0 has been released, can you still roll it (list of new features)
Vite3.0 has been released, can you still roll it (list of new features)
2022-07-29 07:11:00 【m0_ sixty-seven million three hundred and ninety-four thousand 】
Some time ago , You da released Vite3.0, And updated Vite Official documents of , Today, I will lead you to study together Vite3.0 New features at a glance , Here are Vite Official document icon for :

Entering the homepage makes me feel amazing anyway .
This document will briefly introduce Vite3.0 What are the new things , Don't be rolled into a bad shape .
Catalog
Two 、Vite CLI The optimization of the
3、 ... and 、import.meta.glob API The change of
Vite3.0 Also updated some other content , as follows :
Vite The overall volume becomes smaller ;
JS and CSS The compression tool used ESbuild(Vite2 Begin with );
Compatibility has been adjusted , The minimum support node14.18+;
Vite Decided to release a new version every year ;
One 、 Change of template
Take me for example , I use Vite The most created is Vue project , After this update , Use Vite Created Vue The theme of the template is Vite Keep the documents consistent , It also supports dark and light modes , And icon from Vue Of logo Instead of Vite Of logo.
We can use Vite Create a Vue Run the template to see the effect :
pnpm create vite
# project name -> demo
# select a framework -> vue
# select a variant -> vue
cd demo
pnpm install
pnpm dev
The two themes are as follows


Two 、Vite CLI The optimization of the
Vite CLI The style in the command line is also optimized , Look at the picture below

On the left is Vite3.0, On the right is Vite2.0, Visually obvious 3.0 Than 2.0 Look good .
Besides the appearance , We can see The default port number has also changed , from 3000 Turned into 5173;Local The address from localhost Turned into 127.0.0.1.
3、 ... and 、import.meta.glob API The change of
import.meta.globAPI You can import files dynamically , stay Vite3 It is allowed that import.meta.glob Be rewritten , Please refer to Glob Import form , The description in the official documents has been very detailed .
Four 、 Other content
Vite3.0 Also updated some other content , as follows :
Vite The overall volume becomes smaller ;
JS and CSS The compression tool used ESbuild(Vite2 Begin with );
Repair the N Multiple bug;
Compatibility has been adjusted , The minimum support node14.18+;
Vite Decided to release a new version every year ;
This article briefly introduces Vite Some of the new features in . Xiaoyeqiu reminds everyone here : Now the speed of front-end development has become very fast , Keep sensitive to new technologies at all times to ensure that you will not be eliminated , Come on, guys ~
Conclusion : Pay attention to bloggers and don't get lost , Take you on the highway ~~~

边栏推荐
- HJ37 统计每个月兔子的总数 斐波那契数列
- Teacher wangshuyao's notes on operations research 05 linear programming and simplex method (concept, modeling, standard type)
- 模拟卷Leetcode【普通】222. 完全二叉树的节点个数
- MySQL----多表查询
- 要不要满足客户所有的需求
- SQL优化
- Leetcode-1331: array ordinal conversion
- MySQL queries are case sensitive
- 线程同步—— 生产者与消费者、龟兔赛跑、双线程打印
- Cesium反射
猜你喜欢
随机推荐
2D cartoon rendering - advanced skills
Relative date used by filter in salesforce
MySQL----多表查询
约瑟夫环问题
城市花样精~侬好!DESIGN#可视化电台即将开播
模拟卷Leetcode【普通】061. 旋转链表
fillder使用
线程同步—— 生产者与消费者、龟兔赛跑、双线程打印
Salesforce中过滤器Filter使用的相对日期
CVPR2021| 基于自监督学习的多视图立体匹配 (CVPR2021)
VMware16创建虚拟机:Win11无法安装
VMware16安装虚拟机遇到的问题
Sword finger offer II 115: reconstruction sequence
Teacher Wu Enda's machine learning course notes 02 univariate linear regression
buck电路boot和ph引脚实测
二次元卡通渲染——进阶技巧
Flink实时仓库-DWD层(kafka-关联mysql的lookup join)模板代码
MutationObserver文档学习
SSH免密登录-两台虚拟机建立免密通道 双向信任
模拟卷Leetcode【普通】172. 阶乘后的零








