saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.88k stars 223 forks source link

Include `nextron.config.js` to every example/template nextron #377

Open fyfirman opened 1 year ago

fyfirman commented 1 year ago

Hi, Author

Before to the topic, I would say thank you for creating this framework. I was starting my project since 2 months ago and still comfy with the setup you've created.

But today, I was working with shared folder, the main idea is the code which used by main and renderer process. The feature is already finished and work perfectly, but I did an improvement to add an resolve-alias. Thus, I need to change the webpack config. It's easy to config renderer process because I have experience with Next.js, but not for electron. I've been read so many source for some hours to find out how to config the webpack, untill I found the answer in this Readme.md mentioning nextron.config.js. Then I checked my code and strangely it didn't have nextron.config.js.

I think it's better to have default nextron.config.js file included in the examples, since many framework also includes their default file config in the first place. Let me know what you think. I'll be happy to help if you have same thought.

Thanks in advance!