Improve performance in the local development environment with Vite.

Improve performance in the local development environment with Vite.

Performance is an omnipresent topic in the tech world. Every day we discuss the performance of the latest processors or find ways to further optimize source code. Speed thus becomes an important factor for our customers as well as ourselves as a company.


But apart from the performance of a processor, developers are confronted with the speed of the local development environment on a daily basis. Especially for larger projects with slower build processes, performance can become a decisive factor here.

Vite wants to solve this problem for the frontend part of a project. Vite is a JavaScript build tool that aims to provide a faster and leaner development experience for modern web projects. The word "Vite" here comes from French and means "fast".
 

Vite Features:

Vite offers features such as "Instant Server Start", "Hot Module Replacement (HMR)" and support for Typescript, JSX and CSS without prior configuration. Vite's Hot Module Replacement feature ensures that changes are immediately visible, making the developer's job much easier. In addition, Vite abstracts a large part of the configuration, making it easier and more user-friendly.
 

Vite Performance:

When it comes to building and developing Vue.js apps, there are a number of front-end toolchains, each with their own merits. Some developers prefer to use a Webpack-based toolchain, while others prefer tools like Vite, which was developed in close cooperation with Vue. Based on some recent blog articles, it appears that Vite offers significant performance advantages over Webpack-based toolchains.

In an internal Vue 3 project we recently worked on, we were able to significantly reduce the startup time for both the dev server and the build times (Rollup) by switching to Vite. The dev server startup time was reduced from 5551 ms to 345 ms and the build time was reduced from 6244 ms to 4500 ms. Prior to this, the Webpack-based Vue-CLI Toolchain was in use.
 

Conclusion

In summary, Vite is an interesting tool if you are looking for a frontend toolchain for developing a web application with Vue.js or React. However, it is more difficult to integrate in the TYPO3 context due to the existing extension infrastructure. Have you already tried Vite? What experiences have you had? Let us know on Twitter!

TYPO3: Finding unused files in fileadmin

Do you want to delete unused or orphaned files in fileadmin or another storage location? Unfortunately, there's no direct core functionality for this. But a small command in your site package can...

Go to news

TYPO3: Editors with individual user_upload folders

Perhaps you're familiar with this client requirement? Editors should be able to add videos using the "Add media by URL" button. But the files shouldn't be located in fileadmin/user_upload/, but rather...

Go to news

TYPO3: Finding pages in mixed mode

In TYPO3, Mixed Mode refers to translated pages that contain content only partially related to the corresponding content in the main language. This is indicated in the backend by an error message. But...

Go to news

Extbase Extensions: Think extensibility with data, site and language

Today, I have a small request for the TYPO3 extension authors out there: Make sure your extensions are extensible. This will also promote the distribution of the corresponding plugins.

Go to news

SQL: Show all tables sorted by size in descending order

Lately I've been using the SQL command more often to find out which tables in the TYPO3 database are the largest. I've published the snippet once.

Go to news

TYPO3 12 with CKEditor 5: Styles in a single selection

If you set a link in the RTE in TYPO3, you may have to choose between different link classes, for example to create buttons in the frontend. What's new in TYPO3 12 is that you can select not just one...

Go to news