[Vuejs]-How long does it take to build an electron project?

3👍

  1. It depends upon a lot of factors including your hardware and size of project. But in general, for medium size projects, is should not take that long.

  2. It is usually wrapped up in a few minutes, say 3-4 minutes on decent hardware.

A few observations:

  1. As per your dependency tree, it doesn’t look like you have any heavy dependencies. So assuming you’re on a decent hardware it should not take that long.

  2. Also, looks like you’re using webpack, make sure you’ve set your project directory correctly, and it does not includes your node_modules folder. Because if it does, large build times can be explained due to webpack bundling your entire node_modules dir instead of the usual src dir.

  3. If it’s a typescript project, make sure to add exclude key in your tsconfig.json file for all (if any) pre-compiled library that you’re using outside of your node modules dir. This has personally happened to me before, and it does increases your build time rather significantly.

Leave a comment