当前位置:网站首页>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-24 23:18:00 【Ye Qiu senior】
Some time ago , You da released Vite3.0, And updated Vite Official documents of , Today, senior Ye Qiu led 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 devThe 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 , Senior Ye Qiu takes you to the expressway ~~~

边栏推荐
- Org.json Jsonexception: what about no value for value
- The idea of Google's "Ai awareness" event this month
- Some analysis of slow MySQL query
- salesforce零基础学习(一百一十六)workflow -> flow浅谈
- Mandatory interview questions: 1. shallow copy and deep copy_ Shallow copy
- The tragic experience of installing scikitlearn on win764
- Background image and QR code synthesis
- QT6 with vs Code: compiling source code and basic configuration
- Piziheng embedded: the method of making source code into lib Library under MCU Xpress IDE and its difference with IAR and MDK
- WPF opens external programs and activates them when needed
猜你喜欢

Horizontally centered element

一文读懂Elephant Swap的LaaS方案的优势之处

Shardingsphere database sub database sub table introduction

阿里云SSL证书

Go基础笔记_4_map

How to propose effective solutions for high-end products? (1 methodology + 2 cases + 1 List)

CA certificate production practice

认识复杂度和简单排序运算

Burp's thinking from tracing to counteracting

Icassp 2022 | KS transformer for multimodal emotion recognition
随机推荐
网上怎么炒股手机上炒股安全吗
生成式对抗网络的效果评估
Introduction to HLS programming
In pgplsql: = and=
Org.json Jsonexception: what about no value for value
基于FPGA的VGA显示
How to propose effective solutions for high-end products? (1 methodology + 2 cases + 1 List)
Convex optimization Basics
Brainstorming -- using reduce method to reconstruct concat function
Three ways of shell debugging and debugging
Zheng Huijuan: Research on application scenarios and evaluation methods of data assets based on the unified market
关于板载继电器供电不足引起不能吸合的问题
【云原生之kubernetes】kubernetes集群高级资源对象statefulesets
高阶产品如何提出有效解决方案?(1方法论+2案例+1清单)
买收益百分之6的理财产品,需要开户吗?
谢振东:公共交通行业数字化转型升级的探索与实践
P3201 [HNOI2009] 梦幻布丁 启发式合并
Learn AI through detectron2
激光雷达障碍物检测与追踪实战——cuda版欧式聚类
Notes of Teacher Li Hongyi's 2020 in-depth learning series 4