vueschool.io

@vueschool_io

Alex

Kyriakidis

Author of the first Vue.js book (2016)

Vue.js Contributor

Founder @ Vue School

Enterprise Consultant

#1 Training Platform for Vue.js

750+ Video Lessons

140,000 users

Alex Kyriakidis

Daniel Kelly

Debbie O'Brien

Maria Lamardo

Roman Kuba

Filip Rakowski

Lydia Hallie

Rolf Haug

Popular

Vue.js Masterclass

Workshops

Workshops

Workshops on Virtual Classsroom

Vue Corporate Training

NEW

πŸ“Ί

Vue Video

Courses

πŸ‘¨β€πŸ«

Live Workshops

πŸ’¬

Bi-weekly Support

Sessions

πŸ§‘β€πŸ”§

Database for hiring

Vue devs

Vue Corporate Training

Ultimate Vue Bundle

  1. All Video Courses
  2. Live Workshops
  3. Bi-weekly support sessions
  4. Database for hiring Vue devs

Interested? Checkout the website or talk to our team at the booth at the conference

NEW

Vue Corporate Training

NEW

πŸ“Ί

Vue Video

Courses

πŸ‘¨β€πŸ«

Live

Workshops

πŸ’¬

Bi-weekly

Support

Sessions

πŸ§‘β€πŸ”§

Hiring

Database

Interested? Checkout the website or talk to our team at the booth at the conference

Β HowΒ  Β  ite Changes the Game for Vue and Web Development

Outline

  1. What is Vite
  2. Why it's so great
  3. How Vite works
  4. How to use Vite with Vue or React
  5. Vite Ecosystem
  6. Frequently Asked Questions

Interested in the technical insights?

What's Vite?

as of 2022

Β Vite is the officially recommended build tool forΒ  Β  Β Vue.js apps

Vite is a new frontend build tool that significantly improves the frontend development experience 🏎

What's Vite?

Vite's Goal?

Vite's Goal?

Make developers more productive.

By making developers happier.

By making their tools faster!

Evan You

What is Vite??

Vite consists of two parts:

1. A dev server

2. A build command that bundles your code with Rollup

While you develop, your code is served in your browser directly without being bundled and that’s how it is super fast. It’s like opening your local files from you computer in your browser.

1. Vite's Dev Server 🏎

Think of Vite's dev server as vue-cli. But way faster.

Vite's Dev Server 🏎

  • Server starts in <300ms

  • Hot Module Replacement updates in <100ms

Β Leverages browser's native ES modules

Vite's Dev Server 🏎

Utilises ESBuild for

  • supporting bare imports

  • hot module replacement (HMR)

  • tools like typescript

Vite's Dev Server 🏎

utilises ESBuild

  1. written in Go and compiles to native code

  2. uses parallelism heavily

Vite's Dev Server 🏎

large JavaScript codebase

As application grows πŸ“ˆ dev server becomes slower πŸ“‰

Solves the common enterprise problem πŸ†

Vite's Dev Server 🏎

Solves the common enterprise problem πŸ†

Solves the common enterprise problem πŸ†

2. Vite's Build Command 🏭

Vite's Build Command 🏭

Bundling takes place using rollup

Why rollup?

rollup is the best-performing JS-based bundler in terms of:

  • build speed
  • tree-shaking
  • output size

Vite's Build Command 🏭

building for production takes longer than devΒ 

way faster than traditional webpack/vue-cli 🏎

Vite's Build Command 🏭

YOBO!

you only build once

Opt-in Legacy Browser Support

with @vitejs/plugin-legacy

Vite's Build Command 🏭

βœ… βœ… βœ…

Vite's Build Command 🏭

  1. Super fast development experience

  2. Great bundle output using Rollup when building for production

πŸ‘Œ

Vite Summary

Is Vite made for Vue? πŸ‘€

NO

Vite is Framework Agnostic

🀘🏾 

Vite is Framework Agnostic 🀘🏾 

A blazing fast dev environment for:

Vue

React

Preact

Svelte

and more...

Vite is Framework Agnostic 🀘🏾 

I will show you

Vite React App ⚑️ 

Vite x Quasar ⚑️ 

Vite is 10x faster than Vue CLI ✨

Vite Stats

  • 1,000,000 weekly npm downloads
  • 40,000 stars on GitHubΒ 
  • 25,000 followers on Twitter @vite_js
  • 8,500 members on Discord
  • And more than 500 contributors!

So you want to migrate from Vue CLI to Vite? 🀨

From Vue CLI to Vite ⚑️

Simple Migration Process πŸ§šβ€β™‚οΈ

Free Tutorial on Vue School 🌟

Advanced Vite Course

Vite is also capable of Server Side Rendering and Static Site Generation

Static Site Generator built on top of Vite

Vitepress

WIP

Great for documentation and blogs

Vitepress

WIP

Ecosystem

Lots of Vite powered apps ands tools make developer's experience better

Vitepress

Like VuePress but lighter and faster ⚑️

Vitepress

WIP

Can be used in any JavaScript project

Not coupled to Vite projects

Vitepress

WIP

Vitepress

WIP

Vitest

Vitest

A blazing fast unit-test framework
powered by Vite ⚑️

Histoire

A new way to write stories

Histoire

FAQ

Is Vite ready for production?

Is Vite ready for production?

It is πŸŽ‰

Vite stable released on Feb 2021

Does Vite replace vue-cli?

Does Vite replace vue-cli?

Yes! vue-cli is currently in maintenance mode

How about Nuxt?

How about Nuxt?

How about Nuxt?

How about Nuxt?

How About TypeScript?

How About TypeScript?

TypeScript runs 20x - 30x faster in dev with Vite

Do I need to learn Vue from scratch?

Do I need to learn Vue from scratch?

NO

Do I need to rebuild my Vue CLI app from scratch?

Do I need to rebuild my Vue CLI app from scratch?

(just migrate)

NO

How about test runners?

How about test runners?

Various solutions, include:

  • vite-jest
  • cypress
  • ✨ Vitest ✨

Why you pronounce Vite Veet and not Vight?

Why you pronounce Vite Veet and not Vight?

Vite (/vit/) means fast / rapid in French πŸ‡«πŸ‡·

Why you pronounce Vite Veet and not Vight?

Where can I find Vite jobs or Vite developers? πŸ‘·β€β™€οΈπŸ‘¨β€πŸ”§

Vue.js Hiring App

Try it free at vueschool.io/hiring

Where can I find Vite jobs or Vite devs?

Vue.js Hiring App

Criteria

πŸ‘©β€πŸ’»πŸ‘©πŸΏβ€πŸ’»πŸ§‘β€πŸ’»

πŸ‘¨πŸ»β€πŸ’»πŸ‘¨πŸΎβ€πŸ’»

πŸ§‘πŸ½β€πŸ’»

Best Fit

Developers

Other

πŸ§“ years of experience

🌍 location

πŸ€– fullstack

Skills

Vuetify

Vuex

TypeScript

...

Try it free at vueschool.io/hiring

Alex Kyriakidis

.io

Upcoming Vue Events πŸ“†

  • πŸ‘¨β€πŸ« June 8th
    • Workshop: State Management in Vue.js with Pinia
    • Location: Miami πŸ– | vueconf.us
  • βš”οΈ July 13 - 14th
    • Hands-on Event: Vue.js Forge
    • Location: Online 🌎 | vuejsforge.com
  • πŸ‘¨β€πŸ« July 21st

Vue.js Team Solutions ⚑️

  1. Most comprehensive Vue Video library
  2. Intensive Workshops
  3. Bi-weekly support sessions
  4. Database for hiring Vue devs

Grab a FREE limited edition Vue School t-shirt

Visit our Booth πŸ€—

Thank You πŸ™

How Vite changes the game for Vue and Web development

By Alex Kyriakidis

How Vite changes the game for Vue and Web development

  • 1,309