vue-cli-plugin-electron-builder icon indicating copy to clipboard operation
vue-cli-plugin-electron-builder copied to clipboard

Just a documentation clarification

Open SpyrosMourelatos opened this issue 2 years ago • 0 comments

First thing first , thank you for the amazing toolchain, I am fairly new to web technologies and it would be very difficult for me to manually combine all these tools. That been said I find it very difficult for me to understand from your documentation how to tweak the build process.You have some very good examples on your site about adding typescript(which I achieved),modifying web pack parameters, electron builder parameters etc. and those are very helpful. What I currently can't understand (with my noobie amount of knowlege) is how to edit parameters passed to electron and npm. For example when I encounter warnings like that:

UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

I would love to add the flags mentioned --unhandled-rejections=strict or --trace-warnings but I don't know how(I have tried npm run electron::serve --trace-warnings without success .In fact I don't even know which tool prints out these message(probably the node interpreter but I am not 100 percent sure). Furthermore I don't know how to completely remove webpack from debug builds and as a result I end up with having errors reported on lines of code that doesn't exist. I understand that this question might relate more with the underlying tools and not your application but I would like a more thorough explanation of the inner workings of your app and how you connect all these tools to gain more control on my build process in general.

SpyrosMourelatos avatar Aug 04 '21 08:08 SpyrosMourelatos