Ali SadeghiPortfolio detail page
Go to Ali's portfolio

Vite

Frontend Build Tooling

Use Vite as my default setup for modern React projects, with a fast development experience, simple configuration, and efficient builds.

Vite logo

Where It Helps

  • Starting React projects with a fast and lightweight development environment
  • Managing project configuration, builds, aliases, plugins, and environment settings
  • Keeping development and production workflows simple, modern, and performant

Story

I started working with Vite in late 2024.

Before that, I had spent a long time building my React projects with Create React App and had gotten pretty used to its structure.

When I discovered Vite, I quickly noticed how much easier it was to set up a project, how much faster and lighter the development experience felt, and how much better its build process was for my needs. So I pretty much switched completely from CRA to Vite.

Learning it wasn't particularly complicated compared to what I already knew. I mostly needed to get familiar with the project structure, the vite.config file, the build process, and some of Vite's own features.

After that, I started almost all my new React projects with Vite, from larger projects I built for MelkRadar to this portfolio and many others.

While working on MelkRadar projects and this portfolio, I also got familiar with writing tests in Vite-based projects. It wasn't very different from what I had previously done with Jest, so getting comfortable with it was pretty easy.

In this portfolio, when I decided to add SSG and prerendering, I got more involved with Vite's build process and capabilities. It was an interesting experience that took me a bit beyond just using Vite to set up and develop projects.

Recently, I opened one of my old CRA projects again. I couldn't believe how loooong it took to start up for the first time! Obviously not as long as some .NET projects, but compared to Vite, where the development server can be ready in about a second, the difference was really noticeable. :)

Working with Vite feels completely natural to me now, and I usually reach for it without even thinking about it. When starting a new React project, it's pretty much my first choice.

Ask ChatGPT

Get a summary or ask questions about this page.

Open in ChatGPT