Node-webkit Desktop Development First entry 1

Source: Internet
Author: User

Node-webkit is not introduced.

Note that the official website of the word "Node-webkit is based on and Chromiumnode.js " 所以node-webkit 实际是嵌套了个Chromium 浏览器 ,而不是webkit内核。

1 Front-end directory, configuration Package.json

{    "main": "main.html",/                              * The main entrance of the app, file name is arbitrary, required *    /"name": "Demo",/                                * The name of the app, must be unique and conform to the normal variable naming; required *    / "description": "Demo app of Node-webkit",         */* APP's simple description *    /"version": "0.1.0",/                               * App version number *    /"keywords": [ "Demo", "Node-webkit"],            /* keyword of the app, use */"window" when searching for the app    : {/                                       * Windows properties of the app */        "icon": "Link.png",                           /* App icon (visible under Windows, status bar) */        "toolbar": false,/                              * Whether the toolbar is displayed */        "width": +/                                 * Window initialization size */        "height": $,        "frame": true                               /* Whether to display the outer form, such as maximize, minimize, close button */    },    "User-agent": "%name%ver% Nwver%webkit_ver%osinfo "/* can customize the app's UA */}

2 Development debugging, directly drag the front-end directory to the Nw.exe on it.

3 Packaging

Note that even when Node-webkit 10.5 is fixed, skipping the page without cleaning up the memory causes the app to crash, but not directly using the network address to configure the app's entry file ("main": "http://localhost:8882/app/ Marketing/index.html#/view/marketactivity ",),

This will also cause frequent application crashes when switching.

The portal file must be a local file "main": "Index.html", and then index.html do location.href jump.

Node-webkit Desktop Development First entry 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.