I am able to run this template, which create an electron app with p5js code.
But as soon as I add shader loading the app displays a black window. Everything works fine when running the same code through Brackets as a normal javascript website.
So maybe shaders and WEBGL do not work in electron?