admin管理员组

文章数量:1277524

I'm using electron with react js and next. I can't find how to make it's production build. Can anyone help me in this with all steps. My project structure is :

  • app
  • node_modules
  • pages
  • routes
  • static
  • package.json
  • main.js (entry points for electron)
  • next.config.js

    My folder structure doesn't include any renderer folder.

I'm using electron with react js and next. I can't find how to make it's production build. Can anyone help me in this with all steps. My project structure is :

  • app
  • node_modules
  • pages
  • routes
  • static
  • package.json
  • main.js (entry points for electron)
  • next.config.js

    My folder structure doesn't include any renderer folder.

Share Improve this question asked Feb 13, 2020 at 11:24 Anand KumarAnand Kumar 611 silver badge2 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 11

There are two examples in the official Next.js repo here for JavaScript and TypeScript: https://github./vercel/next.js/tree/canary/examples/with-electron https://github./vercel/next.js/tree/canary/examples/with-electron-typescript

They have a good file/folder structure which you can use to start your project with!

本文标签: javascriptHow to make production build for electronreact jsnextStack Overflow