Learn Vite with Evan You

  Рет қаралды 255,040

Vue Mastery

Vue Mastery

Күн бұрын

Ready to master Vue.js? With weekly Vue js tutorials on the latest topics, and exclusive content with Evan You (the creator of Vue), Vue Mastery is the ultimate learning resource for Vue developers to level-up their skills. Watch more free Vuejs tutorials (including Evan's full Vite course) 👉 www.vuemastery.com/courses
Get in touch 👉 team@vuemastery.com
0:00 Introduction
0:31 What is Vite?
3:40 Getting started with Vite
6:48 Typescript
9:21 CSS
10:57 Dependencies

Пікірлер: 208
@ddevulders
@ddevulders 2 жыл бұрын
Evan, how am I supposed to get my coffee in between builds now huh? you only think about yourself.
@AndrewRusinas
@AndrewRusinas 2 жыл бұрын
Hahahaha I said to my team the same :D
@olezhonnv3215
@olezhonnv3215 2 жыл бұрын
You will be fired in nearest few years, because frontend will be generated using AI. Go drink your coffee. and eat banana!
@uskaishiga
@uskaishiga Жыл бұрын
Great comment man hahaha
@anuragpramanik6095
@anuragpramanik6095 Жыл бұрын
Nice one!! :D
@dekcode2824
@dekcode2824 Жыл бұрын
That's the downside of vite I am struggling with 😂
@cedrics7374
@cedrics7374 2 жыл бұрын
Having someone explain his own work is so much better 🙂
@houiderwalid5842
@houiderwalid5842 2 жыл бұрын
Omg he's a really good teacher too.
@lorandhorvath4466
@lorandhorvath4466 2 жыл бұрын
Evan, this is amazing. You basically killed all webpack-based tooling. Good job, I won't miss any of that, not one bit!
@damianperez7736
@damianperez7736 2 жыл бұрын
@@dae2530 keep coping like that
@heathledger7291
@heathledger7291 11 ай бұрын
Not killed, but for most typical frontend site codebases with a single index.html where scripts,stylesheets are injected into its probably the best solution
@lorandhorvath4466
@lorandhorvath4466 11 ай бұрын
@@heathledger7291 It can also handle multiple entry points...
@Zen-rl5pv
@Zen-rl5pv 2 жыл бұрын
First time seeing the vanilla version of vite, it really is looking like the future of frontend tooling!
@TLJAFAR
@TLJAFAR 2 жыл бұрын
Yeah 😊
@cary3682
@cary3682 2 жыл бұрын
Yeah!that is so cool
@saulsalazar7410
@saulsalazar7410 2 жыл бұрын
I love Vue for all the freedom it gives in development and I hope fall in love with Vite too.
@bobsmithy3103
@bobsmithy3103 Жыл бұрын
Love you man! For the last few years I could never get into typescript because of all the issues I had with webpack configuration but this solved essentially all my pain points! THANK YOU SO MUCH!
@tomino133
@tomino133 Жыл бұрын
What an absolute legend this guy is
@francescotrillini5226
@francescotrillini5226 2 жыл бұрын
Love the way he’s teaching
@xxidbr9
@xxidbr9 2 жыл бұрын
i use vite for building components in react, and i really love it ❤️‍🔥❤️‍🔥❤️‍🔥
@dotdot-zp5vx
@dotdot-zp5vx Жыл бұрын
i Love how excited and proud he is
@luzaw4957
@luzaw4957 2 жыл бұрын
Never thought Vue creator, an ex-Google would do this simple tutorial, awesome!
@theohallenius8882
@theohallenius8882 2 жыл бұрын
I've been enjoying the Vite + Svelte combo, it's like "wow, where has this been all my life?"
@SewonKimMusic
@SewonKimMusic 4 ай бұрын
this is incredible! I'm honored to receive such valuable education.
@prachi.srivastava
@prachi.srivastava 5 ай бұрын
this is by far the awesomest video to understand what vite does
@romannimchuk5073
@romannimchuk5073 2 жыл бұрын
Was trying to use it with my ts+react project, but faced with some polyfill issues so I give up and choose raw esbuild. Anyways, from the developer perspective vite looks simple and amazing and I wish to use it in future projects
@fifty6737
@fifty6737 Жыл бұрын
this hands down one of the coolest shit i've seen in frontend tools
@mrCetus
@mrCetus 2 жыл бұрын
This is a great peek at what's going on in the frontend world 😄 I hope you turn this into a series.
@VueMastery
@VueMastery 2 жыл бұрын
This is part of a full series, available here: www.vuemastery.com/courses/lightning-fast-builds-with-vite/intro-to-vite
@akaza7613
@akaza7613 Жыл бұрын
@@VueMastery but I'm poor I can't afford 😭💔👍
@tbugaevsky
@tbugaevsky Жыл бұрын
Thank you for care of dev server speed, it was pain working without it.
@TheMenny10
@TheMenny10 2 жыл бұрын
Awesome video! Quick question, what's the VS Code theme's name and the icon's name? looks super dope!
@re.liable
@re.liable Жыл бұрын
Started with Grunt the other day. Will be migrating to Vite immediately 😆
@gsop7385
@gsop7385 Жыл бұрын
great tutorial, thank you so much
@programmingholic
@programmingholic Жыл бұрын
Evan it's really Great, Thankyo for this .
@sonofabippi
@sonofabippi Жыл бұрын
Build cycles in my first job were 2-3 minutes. 2-3 minutes. Two, to three minutes. A full build of everything from the drop to make a .bin file to burn to 'the thing' was 27 minutes.
@werneralonzo1230
@werneralonzo1230 2 жыл бұрын
awesome, looks very very well
@theworld5937
@theworld5937 2 жыл бұрын
This man is a legend. 15 gold Olympic medals if JS was a sport.
@salehmir9205
@salehmir9205 2 жыл бұрын
This guy is the best thing that happened to JS just like Taylor Otwell is the best thing that happened to PHP
@JosueArtaud
@JosueArtaud 2 жыл бұрын
What about Fabien Potencier?
@jimshtepa5423
@jimshtepa5423 2 жыл бұрын
I wish you covered more details of how vite is different from parcel (or similar instrument). I recognize that it may sound too basic information but beginners like me would appreciate some basic details along with more advanced ones. Apart from that the content is really good and I cannot even imagine how difficult it was to build such instrument. Thank you for the material. Your time is well appreciated
@kma1138
@kma1138 2 жыл бұрын
"Who's the teacher in that video?" "It's You" "Huh? I mean who is the teacher?" "It's really You!" ...
@howhello354
@howhello354 2 жыл бұрын
: hi, I'm you : then who I'm!
@rajdeepc03
@rajdeepc03 2 жыл бұрын
This is amazing... Please support angular too!
@jakeave
@jakeave Жыл бұрын
I just remember crying and dying trying to update babel and babel plugins, and having a build tool that takes advantage of the current state of browsers is so nice.
@niner8275
@niner8275 2 жыл бұрын
I always found that vite felt somehow like magic. Now I know it IS magic 😉
@dorianxonic
@dorianxonic Ай бұрын
This is so cool!
@BsiennKhan
@BsiennKhan 2 жыл бұрын
Does it do tree shaking? I was assuming only importing debounce from lodash, The file size would ib in KBs instead of 1.3MB @13:00
@jbrown-acuity
@jbrown-acuity 2 жыл бұрын
Thanks Evan!
@saultube44
@saultube44 Жыл бұрын
Efficient as Native, that's great 😃👍 Thanks 🙏 I'm a 100% n00b programmer in JavaScript, I'm trying to educate myself, I can code on Pascal 7, Delphi and Visual Basic, so I can't understand much, but I understand enough, to see that is reduced to calls 🤙to Native code and not to a VM or other slow engine
@cutups
@cutups 2 жыл бұрын
Followed along here and found that not only is hot reloading not working, nothing updates at all unless I restart the dev server. Any basic troubleshooting tips?
@awesome-view
@awesome-view Жыл бұрын
Wow, this is a game-changing tool.🙂
@hidami3241
@hidami3241 2 жыл бұрын
Hi Evan, any plans for mobile app development with vuejs?
@koistya
@koistya 2 жыл бұрын
Is it going to work with stuff relying on Babel plugins such as Relay compiler, allowing to have GraphQL fragments inside of js/ts code (similarly to how you use JSX inside .js/.ts files)?
@superJerrySong
@superJerrySong Жыл бұрын
vite is awesome 🥰
@maizesoft
@maizesoft 2 жыл бұрын
If the us and html is in the public folder, it does not load the import module?
@vladhusnullin1650
@vladhusnullin1650 2 жыл бұрын
How about debuging JS/TS in the chrome dev tools ?
@zarefaworld7628
@zarefaworld7628 Жыл бұрын
thanks for your explained. iwanna ask in my case i have laravel breeze with vite and i must run 'npm run dev' to open the project and works good. then how to deploy to the web server works good cause in the web server i cannot run ''npm run dev''
@ronyfhebrian2629
@ronyfhebrian2629 2 жыл бұрын
I too collect Gundam, Evan!
@asim-gandu-phenchod
@asim-gandu-phenchod 2 жыл бұрын
Good quality
@AlexKozack
@AlexKozack 2 жыл бұрын
It looks like CSS Module Scripts comes into our lives. Are there any plans to abandon your own version of working with CSS in favor of native modules?
@user-zd5ld7zw9d
@user-zd5ld7zw9d 2 жыл бұрын
其实是想说 loaash-es 会 tree shaking 的是吗?
@nikolaykoychev8261
@nikolaykoychev8261 2 жыл бұрын
Bose NC 700 - have the same headphones :)
@roshanjameershaik8391
@roshanjameershaik8391 2 жыл бұрын
please make a video about module federation using vite originjs plugin
@IvanDerevyanko
@IvanDerevyanko 2 жыл бұрын
Thanks for Vite, great tool! As Fo TS, the most valuable reason to use TS is type checking and we lose it with Vite. It would be awesome to have an option to switch from es build
@AlfredTuinmanOurManInIndia
@AlfredTuinmanOurManInIndia 2 жыл бұрын
I may be missing a point but how do i procress a js file before rendering the html page. In Webpack one has an html (ejs) file and a js file per page. So I am kind of lost here. I don't use frameworks and only vanilla javascript
@deamorta6117
@deamorta6117 2 жыл бұрын
Vite is the best!
@cnikolov
@cnikolov 2 жыл бұрын
Its really cool I just didn't get why would you use typescript but without type checking? just to get features such as interfaces etc? would it be worth to write interfaces if there is no type checking
@mohammedaliagha7520
@mohammedaliagha7520 2 жыл бұрын
VSCode or another IDE that's setup properly will give you type-checking, so doing `let foo: number = "bar"` for example will show an error in the IDE
@AndrewRusinas
@AndrewRusinas 2 жыл бұрын
Hey, what about Vite support Vue 2?
@murmotivationmusic6151
@murmotivationmusic6151 2 жыл бұрын
awesome
@arkad-journeytobigtech9797
@arkad-journeytobigtech9797 2 жыл бұрын
hello does someone know what colour theme is this on vscode?
@cubedev4838
@cubedev4838 2 жыл бұрын
The best thing about vite is the fouder itself teach people.I hope Evan Yu can teach us more about vite. Maybe do a lots of common projects such ecommerce, CRUD and etc. So people can see clearly the power of vite. But i wondering what happen to Vuejs?
@STevenLIONTrue
@STevenLIONTrue 2 жыл бұрын
Sigue en pie, lo único es otra herramienta más pero con otra agilidad
@jonathansigg8563
@jonathansigg8563 Жыл бұрын
Is there ANY tutorial for vitesse????
@luyuanqiang
@luyuanqiang 2 жыл бұрын
Cool, it is nice.
@goavi
@goavi 2 жыл бұрын
I love vue
@jsonkody
@jsonkody 2 жыл бұрын
Vít (same pronunciation as Vite) is czech name. Vít is super formal form though. Home form: Vítek English: Guy, Vitus
@tomaaa08
@tomaaa08 2 жыл бұрын
The production quality of this vid is very high, good job! How did you record it? Or what software did you use for it?
@derjansan9564
@derjansan9564 2 жыл бұрын
I often have problems with old listeners still being attached after a hot reload. Are there any best practices to avoid this?
@olezhonnv3215
@olezhonnv3215 2 жыл бұрын
Yes. Not to use hot reload.
@Tony.Nguyen137
@Tony.Nguyen137 11 ай бұрын
Can I change the css code template of the provided css file?
@ricosrealm
@ricosrealm 2 жыл бұрын
What's the point of supporting Typescript in development if there's no type-checking? The claim that your ide can handle that is not a good one. VScode isn’t a great tool for surfacing errors in customized typescript workflows or just in deeply nested projects in general.
@AnimusAgent
@AnimusAgent 2 жыл бұрын
Why is angular not supported? I know that angular cli is already using esbuild on version 13, so angular cli is just as fast as vite?
@athitsaewang3652
@athitsaewang3652 2 жыл бұрын
i have websocket connection to wss failed. How i can resolve that, thanks
@ForeignChaos
@ForeignChaos 2 жыл бұрын
WOW!
@Viralplace
@Viralplace 2 жыл бұрын
I have problems with the @use and @import in vite.js. I can't use @use to import a folder for example @use 'components', I can't use @import with comma and without .scss extension, for example @import 'uno', 'due', 'tre': but I have to write always @import.... why? it's terrible
@g43s
@g43s 2 жыл бұрын
I hope we get React Native support in the future
@ashutosh887_
@ashutosh887_ Жыл бұрын
How to add env variables to vite.config.js (I'm creating a React Vite Project)
@codernerd7076
@codernerd7076 Жыл бұрын
I wish there was a option to make it use one src folder
@alextl97
@alextl97 2 жыл бұрын
This dude was born to be a Javascript engineer.
@DavidHarperUK
@DavidHarperUK 2 жыл бұрын
Well now I know it's not Vite as in bite, but Veet as in the hair removal cream. Can't wait to use it though.
@roteschwert
@roteschwert 2 жыл бұрын
The "t" at the end is also a soft one
@darkmode404
@darkmode404 2 жыл бұрын
I would like to ask, as I am trying to access free tickets available registration link, the page cannot be reached
@VueMastery
@VueMastery 2 жыл бұрын
Hi David, is this link working for you?: www.vuemastery.com/vite-weekend-2021
@uquantum
@uquantum Жыл бұрын
Thanks Evan! Like some others watching this I work daily with Webpack5 which gets the job done. Vite looks like just the thing to try out on a new three.js experimental 🧪project where I was looking for faster/hot reloads (than Webpack) to be more forgiving on me as I blunder my way up the three.js learning curve
@p_levin
@p_levin 2 жыл бұрын
What about Jest?
@mossfoobar8322
@mossfoobar8322 2 жыл бұрын
Does it work with frameworks such as vuetify? How can i bundle my existing vuetify project with vite 🙈 with vite ... Get it?
@artihlec
@artihlec 2 жыл бұрын
npm init vite - BOOM! it DOES work with react I consider to use it instead of CRA - advantages are obvious, what about disadvantages, can you point some?
@RJ67.
@RJ67. 10 ай бұрын
How do I unlock my aetherium I sent less than zero point three
@hessiride1729
@hessiride1729 2 жыл бұрын
nice...
@krtirtho
@krtirtho 2 жыл бұрын
A little bit of clarification, Well, not type checking typescript files wasn't a choice for Vite, it's a limitation bound to ESBuild Since ESBuild is written in Go & Go is a statically typed language. But it doesn't support interfaces/unions/generics (generics are supported in beta though). Also it's OOP works bit differently & uses structs instead of classes (similar to Rust/C) to support OOP-'ish' paradigm. Thus it's hard to implement the TS Type-Checker in Go but not impossible Also implementing "static" Typechecking is a lengthy process & requires huge patience & a lot of code. All the reason combined it was a bit too hard for the ESBuild (also Vite) team to accomplish such difficulty but we know OSS, right? We'll overcome this limitation too!👍 BTW, for your information, the one & only Typescript type-checker is the official one. Though there's been work going on in SWC (Rust based frontend build system) but it seems the author will keep the type-checker part proprietary & paid
@Ilyushya
@Ilyushya 10 ай бұрын
Go has interfaces, by the way
@SteveInTek
@SteveInTek 2 жыл бұрын
does anybody know which VS code color schema Evan is using on the video?
@pdi999
@pdi999 2 жыл бұрын
I think it is Material Theme (Palenight High Contrast)
@SteveInTek
@SteveInTek 2 жыл бұрын
@@pdi999 awesome! thank you
@timurtimak6372
@timurtimak6372 2 жыл бұрын
Is it Google Glass on the thumbnail? Is the image flipped? I thought there was only right-eye version.
@VueMastery
@VueMastery 2 жыл бұрын
Yes it's flipped. Good eye! 😁
@DjLeonSKennedy
@DjLeonSKennedy 2 жыл бұрын
cool
@kaleabayele918
@kaleabayele918 Жыл бұрын
but still vite is not working for me with react the server do not start. has some error on callback function
@user-rh6lx7yn6j
@user-rh6lx7yn6j 2 жыл бұрын
不错
@Kanexxable
@Kanexxable 2 жыл бұрын
Thanks for the presentation but at the moment vite does not work well with docker I hope that problem gets fixed.
@shinobi77
@shinobi77 2 жыл бұрын
I'm using it with Docker 🙂 although it was not straight forward. What is it you're going through? maybe I can help.
@justafreak15able
@justafreak15able 2 жыл бұрын
@@shinobi77 What is the issue?
@mojekonto9287
@mojekonto9287 2 жыл бұрын
Apparently you do not fully understand what you talk about. If Vite works in your system then it will work in Docker as well.
@justafreak15able
@justafreak15able 2 жыл бұрын
@@mojekonto9287 exactly
@JB-fh1bb
@JB-fh1bb 2 жыл бұрын
@@shinobi77 Can you share your script/Dockerfile/whatever worked so that others can benefit?
@ahmadmobaraki7371
@ahmadmobaraki7371 2 жыл бұрын
Vite is awesome :), you deserve to have a better microphone!!
@tibideac
@tibideac 2 жыл бұрын
and a debounce support for webcam
@lobobogard9236
@lobobogard9236 2 жыл бұрын
is that the reason I am learning golang because is the future in my opinion personal first laravel octane in the back end now vite in the front end beatiful.
@sachin__ak
@sachin__ak 2 жыл бұрын
rust?
@normanejm
@normanejm 2 жыл бұрын
Where I can find these vite's videos... ??
@VueMastery
@VueMastery 2 жыл бұрын
You can find them here: www.vuemastery.com/courses/lightning-fast-builds-with-vite/intro-to-vite ☺
@creativedeveloper6921
@creativedeveloper6921 2 жыл бұрын
dumb question.. why not just use esbuild then? What am I missing here?
@lorandhorvath4466
@lorandhorvath4466 2 жыл бұрын
Yeah, good question.
@abdelhamidkhalil6535
@abdelhamidkhalil6535 Жыл бұрын
Does anyone knows what theme is used in Vscode ?
@phojie6868
@phojie6868 Жыл бұрын
Purple shade
@ahmararshad4601
@ahmararshad4601 2 жыл бұрын
Hello from 🇵🇰
@BobbyBundlez
@BobbyBundlez Жыл бұрын
still have insane difficulty setting up node/express with a local client server. tasks like this shouldn't be so hard
@j4nch
@j4nch Жыл бұрын
Vite is awesome, but I must admit I get a bit lost between what I was thinking a frontend tooling does and what a framework does(typically, why vite's plugin could manage my app framework. Is it still a bundler/tool to manage/compile my frontend since it starts to handle logic of the app? As a newbie, it's a bit hard for me to understand where Vite ends and where Vue starts.
@VueMastery
@VueMastery Жыл бұрын
We have a full course taught by Evan: www.vuemastery.com/courses/lightning-fast-builds-with-vite/intro-to-vite, hopefully he can help answer your questions. 💡
@j4nch
@j4nch Жыл бұрын
@@VueMastery thanks, I will take a look. The last courses I checked on your platform were outdated.
@VueMastery
@VueMastery Жыл бұрын
@@j4nch Which courses are you referring to? We've been hard at work publishing a bunch of new courses on the latest releases, with 5 new courses published in the past couple months :D
@j4nch
@j4nch Жыл бұрын
@@VueMastery I only tried the "Intro to Vue 3", but it doesn't use the Composition API(which should be the de facto approach nowadays), nor the script setup tag which make much more sense to me. I never liked the option api approach(reason why I was mostly doing some angular/react until now)
@quietlab.5727
@quietlab.5727 Жыл бұрын
what terminal app/theme he use?
@seth_sesu
@seth_sesu Жыл бұрын
I was wondering the same. Looks much better than Apple's.
@seth_sesu
@seth_sesu Жыл бұрын
it's iTerm
@sergiomartin5445
@sergiomartin5445 2 жыл бұрын
Why is it working? I mean, I can't see any webpack configuration anywhere.
@lorandhorvath4466
@lorandhorvath4466 2 жыл бұрын
Haha, good one. Because it's not webpack, but esbuild for development and rollup for production.
@federicobau8651
@federicobau8651 5 ай бұрын
Evan You, so fucking smart guy. Daamn.
Vue.js 3 Deep Dive with Evan You
13:46
Vue Mastery
Рет қаралды 57 М.
Vue.js: The Documentary
34:45
Honeypot
Рет қаралды 1,5 МЛН
ВИРУСНЫЕ ВИДЕО / Виноградинка 😅
00:34
Светлый Voiceover
Рет қаралды 7 МЛН
请善待你的娃娃第二集 #naruto  #cosplay  #shorts
00:52
佐助与鸣人
Рет қаралды 24 МЛН
Vite Crash Course | Faster Alternative To CRA
16:24
Traversy Media
Рет қаралды 177 М.
Visual Guide to the Modern Frontend Toolchain (Vite)
9:18
Lachlan Miller
Рет қаралды 71 М.
Python or JavaScript - Which One Should YOU Learn?
8:05
Tech With Tim
Рет қаралды 124 М.
I learned to code from scratch in 1 year. Here's how.
41:55
Thomas Frank
Рет қаралды 293 М.
Vite: The Death of Webpack? 😨
10:37
Mehul - Codedamn
Рет қаралды 37 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Почему сканер ставят так не удобно?
0:47
Не шарю!
Рет қаралды 486 М.
Samsung mobile phone waterproof display. samsung mobile phone digital s23ultra  #shorts
0:15
Cách sửa này được không các bạn?
1:00
Cơ Khí Toàn Nghĩa
Рет қаралды 824 М.
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Рет қаралды 15 МЛН