create-nw-react-app icon indicating copy to clipboard operation
create-nw-react-app copied to clipboard

Question. where to mount the configurations for windows nw.js?

Open j-Cis opened this issue 6 years ago • 2 comments

Question. where to mount the configurations for windows nw.js?

I apologize for the prosaic nature of my question, but I'm still learning .. (and the Polish proverb says "who asks is not to wander" & "no exist stupid questions, only stupid answers")

  • I would like to set size of the window nw
  • and a few others, I do not know where to put configurations the best method, for nw, to make it work with this "startup"

in advance - thank you for your support and helpful

j-Cis avatar Sep 06 '18 00:09 j-Cis

Having same problem, not sure how to set width and height of the original NW window that is created upon start.

EDIT: Figured it out after a bit of looking around, in your package.json, you need to add a new section, called "window", on the same indentation as name, version, dependencies etc.

Snippet of how mine now looks like this:

... "name": "NW-test", "version": "0.1.0", "window": { "width": 640, "height": 320 }, ...

ExoMemphiz avatar Jan 11 '19 17:01 ExoMemphiz

NW.js sets from package.json. http://docs.nwjs.io/en/latest/References/Manifest%20Format/

This app is only to provide a minimum nw-react-app, it does not include the basic settings of NW.js.

I will consider whether to include the window setting in the future.

Thanks for comment.

naviapis avatar Jan 12 '19 02:01 naviapis