I built my Electron app using the standard example app that is provided which includes a lot of node modules. There are over 200 node modules and many of them I don't need. I want to remove all those I don't need but it isn't clear how to determine that. Some of the ones I need have dependency modules and I have no way of determining which ones those are. Aside from just removing what I think I don't need and testing the app to see if it works properly, is there some more quick and accurate way of determining which modules I need?
In my package.json file there are several modules listed in the dependency section. If I delete all the node modules and rerun the app, the ones listed in the package.json file are installed but so are hundreds more. I cannot tell whether all those other ones are absolutely needed or whether the npm start command just grabs everything related to the ones in the package.json file.