express-serve-asar
A Node.js Express middleware for serving static files inside Electron's asar file. Also works with webpack-dev-server.
Usage
const serveAsar =const devServer =const webpack =const path =const webpackConfig =const compiler =const host = 'localhost'const port = 3000const contentBase = pathconst customResponseHeaders ='X-My-Header': '233'/*** @param* @param*/const middleware =const devServerOptions =stats:colors: truehot: trueinline: truehostcontentBase{app}devServerconst server = compiler devServerOptionsserver