leo / electron-next

Build Electron apps using Next.js
https://github.com/leo/site/blob/beef3a7dc1dfd435a9d8377e3b1b59761ccb7fc7/pages/2017/electron-next.js
MIT License
548 stars 41 forks source link

extending webpack config #20

Open artivilla opened 6 years ago

artivilla commented 6 years ago

Not entirely an issue but not obvious from the docs so pardon my ignorance, how do I extend the webpack config for dev/prod builds.

hellais commented 6 years ago

You can follow the same instructions that apply to next.js for doing that. You can see an example of how to do this in this application that uses electron-next: https://github.com/ooni/probe-desktop/blob/master/renderer/next.config.js.