Open j-Cis opened 5 years ago
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 }, ...
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.
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")
in advance - thank you for your support and helpful