0
votes

I have a large Vue application that is being bundled with Webpack. The bundle time is around 2 minutes, and I have not found a way to improve it much.

For development purposes, I am using webpack-dev-middleware and webpack-hot-middleware. I would like to find a way to avoid waiting the whole bundle time every time I start the development server - specially when the code has not changed at all.

Is it possible to cache old builds so that, is nothing has changed, webpack-dev-middleware reuses them instead of building the code all over again? Can you think of any other way of improving this situation?

Simplest solution? Use vite. Works with Vue2 and Vue3.kissu