electron-userland / electron-webpack

Scripts and configurations to compile Electron applications using webpack
https://webpack.electron.build/
903 stars 170 forks source link

Question: Devserver disable #447

Open ottogutierrez opened 3 years ago

ottogutierrez commented 3 years ago

I am currently developing an application that needs to talk to an intranet API. However, the API server doesn't allow requests from another host. As such, all API calls I make in development mode don't work, as Webpack creates a devserver. When I pacakage the app, they do work. However, for development it makes it hard to test my code as I have to re-package every time I want to see if something works.

Is there a way that I could disable the devserver when in development and make webpack point to the compiled asset website?

Thank you!