In this section I outline my personal motivation for starting this project.
Additionally, since it does not use webpack-chain, opting out of the default loaders is difficult, and integration with tools like vue-cli requires full understanding of the underlying implementation.
Webpack—increasing load times
If you have worked on a large frontend application, you have probably experienced increasingly long startup times for webpack as the amount of code and dependencies grew.
It gets worse when HMR or incremental compilation starts to slide from under one second, to one, two, three seconds, or more! Should I refresh the page?
Creators need an immediate connection to what they're creating.
Vite—no bundling in development
This design decision has major implications: as your application grows, startup time does not keep crawling up. Incremental builds are extremely fast, since processing happens on demand.
A friend said that it changes the game, and I couldn't agree more.
Less dependencies, friendly for beginners, easy to hack
Vite's documentation is excellent, and its internals are easy to navigate since the codebase is written in TypeScript, which is really convenient when writing a plugin.
In short, I'm striving to achieve a good balance.
I hope that you find this project as useful as it has been for me.
This project wouldn't exist without Vite.js.
Webpacker broke ground in the Rails community by enabling everyone to use webpack and any modern framework, without struggling with the assets pipeline. It has been a major inspiration for this project.
Don't hesitate to ⭐️ star the project if you find it useful!
Using it in production? Always love to hear about it! 😃